[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ping must be run as root?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A long time ago, in a galaxy far, far way, someone said...

> Hi, when i try to run "ping" (on a fresh Debian 2.2 install) as a
> non-root user i get "ping must be run as root". What is the reason?
>
> I think this has something to do with pam, but i found nothing
> related to ping in pam's configs.

It has nothing to do with PAM.

"ping" needs to run as root to be able to create a raw socket to send the
ICMP packets out through.

The "ping" variant installed Debian 2.2 drops root priviledge after the
raw socket is created.

If you wan't to run "ping" as non-root, you need to make it suid-root.

- -- 
- ----------------------------------------------------------------------
Phil Brutsche				    pbrutsch@tux.creighton.edu

GPG fingerprint: 9BF9 D84C 37D0 4FA7 1F2D  7E5E FD94 D264 50DE 1CFC
GPG key id: 50DE1CFC
GPG public key: http://tux.creighton.edu/~pbrutsch/gpg-public-key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6bnHc/ZTSZFDeHPwRAkTuAJ4rDKFhnE7gB1B7YVHOcAU9HwhjfACgkMUF
EvpQQPRQasU63WoT+Xcl6KM=
=9l4d
-----END PGP SIGNATURE-----



Reply to: