* Running Listen
@ 2004-12-09 13:52 Chuck Hast
2004-12-09 16:26 ` Curt, WE7U
2004-12-09 22:58 ` Jim Bayer
0 siblings, 2 replies; 3+ messages in thread
From: Chuck Hast @ 2004-12-09 13:52 UTC (permalink / raw)
To: Linux-Hams
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."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Running Listen
2004-12-09 13:52 Running Listen Chuck Hast
@ 2004-12-09 16:26 ` Curt, WE7U
2004-12-09 22:58 ` Jim Bayer
1 sibling, 0 replies; 3+ messages in thread
From: Curt, WE7U @ 2004-12-09 16:26 UTC (permalink / raw)
To: Chuck Hast; +Cc: Linux-Hams
On Thu, 9 Dec 2004, Chuck Hast wrote:
> 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!"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Running Listen
2004-12-09 13:52 Running Listen Chuck Hast
2004-12-09 16:26 ` Curt, WE7U
@ 2004-12-09 22:58 ` Jim Bayer
1 sibling, 0 replies; 3+ messages in thread
From: Jim Bayer @ 2004-12-09 22:58 UTC (permalink / raw)
To: Chuck Hast; +Cc: Linux-Hams
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.
On Thu, 9 Dec 2004 08:52:57 -0500, Chuck Hast <wchast@gmail.com> wrote:
> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
'73'
Jim - KC9AOP
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-09 22:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-09 13:52 Running Listen Chuck Hast
2004-12-09 16:26 ` Curt, WE7U
2004-12-09 22:58 ` Jim Bayer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.