meaning of suid on /usr/bin/passwd
Hi gurus.I m newbee in linux and trying to learn it. I have a doubt- somewhere i have read about suid, and what i understood is 'when suid is applied on an executable then it works on permissions of owner of file.
Now take example of /bin/passwd its default permissions in my system are rwsrwxr_x. As per the meaning of suid everyone can execute this command and can change their password. As its working on the permissions of file owner which has permissions rws, then there is no use of execute permission of other. If so why this command doesnt work for other users if i change the permissions to rwsrwxr--.
Pls guide me.