Skip to contentSkip to conversation

Running Listen

DISCUSSION Chuck Hast 3 participants 3 messages Dec 9, 2004

lore
Share & tools
lore

Chuck Hast

author
#0 lore raw

Folks,
I am trying to run listen as a non-root user. I have checked the permissions and group stuff, all appears Ok, it I run it as root, it takes off just fine, but if I run it as a non-root user I get this error:
socket: Operation not permitted

I have done some looking and see something to the effect that tcpdump must be run as root or you get the same error, is this true of listen also?

Indeed I wanted to set up listen so I could have a log in directly to a listen session so I could just log in remotely and observe the goings on's on the different ports of the switch. (Has high speed internet connection so there is not problem there) Again I can ssh into the box as root and start a listen session just fine, but as anything else I get the above infamous error.

Signature · 5 lines
Chuck Hast 
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
#1 lore raw
Quoted 4 lines · Chuck Hast

I am trying to run listen as a non-root user. I have checked the permissions and group stuff, all appears Ok, it I run it as root, it takes off just fine, but if I run it as a non-root user I get this error:
socket: Operation not permitted

Have you tried setting the SUID bit?

That allows it to run as root no matter who started it. Just set the owner to root and then set that bit using chmod.

Note that there are security implications to this. If someone else can gain control of that program while it's running (through buffer overflows usually), then they can gain root access of your system.

--
Curt, WE7U. APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U "The world DOES revolve around me: I picked the coordinate system!"

#2 lore raw
In reply to Chuck Hast

Did you try setting the sticky bit?

As root type chmod a+s <file>. This sets the owner and group sticky bit to root. Then anyone who runs the program runs it as root.

Quoted 26 lines · Chuck Hast

Folks,
I am trying to run listen as a non-root user. I have checked the permissions and group stuff, all appears Ok, it I run it as root, it takes off just fine, but if I run it as a non-root user I get this error:
socket: Operation not permitted

I have done some looking and see something to the effect that tcpdump must be run as root or you get the same error, is this true of listen also?

Indeed I wanted to set up listen so I could have a log in directly to a listen session so I could just log in remotely and observe the goings on's on the different ports of the switch. (Has high speed internet connection so there is not problem there) Again I can ssh into the box as root and start a listen session just fine, but as anything else I get the above infamous error.

--
Chuck Hast
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going out and having to identify your bits and pieces in the midst of torn and twisted metal."
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
'73'

Jim - KC9AOP