Re: TCP EAGAIN/EACCESS for outbound connections.

ralf@uni-koblenz.de
Wed, 18 Nov 1998 13:08:20 +0100


On Tue, Nov 17, 1998 at 02:02:58AM +0000, David wrote:

> ok. here's more on the scoop. root can successfully ssh out. reason?
> it calls bind() on a socket < 1023. a normal user can't and ssh fails.
>
> here's snippet from proftpd. an irc client also returns permission denied.
>
> [pid 28138] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
> [pid 28138] setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> [pid 28138] bind(4, {sin_family=AF_INET, sin_port=htons(0),
> sin_addr=inet_addr("207.213.0.47")}, 16) = -1 EACCES (Permission denied)

SUID bit lost from the ssh executable? Ssh should be SUID root.

Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/