[olug] chmod u+s

Jay Hannah jay at jays.net
Thu Jun 3 22:40:28 UTC 2004


Huh? What good is the setUID bit if it doesn't let me do this?

Setup:
root at chinstrap log # ls -al mail.log.cat
-rwsr-xr-x    1 root     root           22 Jun  3 17:03 mail.log.cat
root at chinstrap log # cat mail.log.cat
cat /var/log/mail.log

Try to use it:
jhannah at chinstrap log $ ./mail.log.cat
cat: /var/log/mail.log: Permission denied

Gentoo, Linux 2.6.6

j



More information about the OLUG mailing list