when debugging a printing problem (user cannot lprm) I ran into basic
troubles in understanding setuid-root. I couldnt clear my mind in man
assume a file like:
-rwsr-sr-x 1 root users 95 Apr 2 15:00 testscript
what does it exactely mean ?
when ANY user execute this file it is run as root ?
only a user = root or a user in users can start it so that it run as root
and other users can only run it 'normally' ?
in the first case, which makes more sense to me, why is there a per-user-
setuid and a a pergroup-setuid ?
anyway : on my system neither the first nor the second seems to work.
testscript should delete a file that is owned by root (just for
testingpurpose only !!)
rm -f /tmp/test
-rw-r--r-- 1 root root 95 Apr 2 15:00 test
I run this script as root and the file gets deleted. I run the file as
user (groupmembership users or not) and I get a permission-error !
Is it possible that setuid is permitted on my system (its based on
redhat5.2 but with new kernel)