A Question related to SUID (Set UID)
I am trying to understand the concept of SUID. According to the resources I have, when a file is given an SUID permission with executable permission to others,irrespective of the user who is executing it, the system will run with a UID number of 0 (that is root) thinking that it was run by root.
I tried to experiment with it as follows:
chmod 777 /public
chmod 4777 /public/script.sh
su - normaluser
THE OUTPUT IS : normaluser. Actually it should be root. is it not?. Please advise me on how to go about with this.
Last edited by saagar; 02-01-2009 at 12:44 PM.