Re: suid root

Erik Schoenfelder (schoenfr@gaertner.de)
Thu, 13 Feb 97 11:56:33 +0100

Hi!

Dinesh> Okay this may be OS specific. I'm running it on IRIX 5.3.

Dinesh> I did a chmod 4755 on traceroute with no success. But, doesn't
Dinesh> the program need to make suid call to ACTUALLY work?

a setuid(2) call is not necessary, because the effective uid of root
is what ntping needs.

changing the traceroute script to suid root may not work, because

- irix ignores suid bits for scripts (like linux does).

- setting uid works, but is useless, because ntping has its
own suid bit set, maybe with a wrong ownership.

please check:

> ls -l /usr/local/bin/ntping (or whereever its installed)

should look like:

> -r-sr-xr-x 1 root root 20771 Jan 2 11:27 /usr/local/bin/ntping*
^ ^
suid bit set and owned to root.

if this binary is present in a NFS mounted partition, make sure it is
not mounted with mount-option `nosuid', making the suid-bit useless.

hope this helps,

Erik

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.