[olug] chmod u+s

Thom Harrison id4spam at cox.net
Thu Jun 3 22:50:51 UTC 2004


Can root run mail.log.cat successfully?
Is /var mounted with the SUID allowed?

If you answered "yes" to both questions then the answer is:

It's not worth a squat!

:-)

Thom

Jay Hannah wrote:

>
> 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
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>


More information about the OLUG mailing list