Test with SUID and SGID fails

view story

http://www.linuxquestions.org – Hi. I'm trying to more understand SUID and SGID subject. I've read the common everywhere example of SGID for /usr/bin/passwd command. It means that anyone can run passwd command as beeing root. In other words nobody might access /etc/passwd but with passwd can changed the content. Now. 1. I created two users: master(gid:master) and slave(gid:slave) 2. As root user I created /home/project directory as (root : project) access. 3. Inside it I've written simple test.sh script. It contains "cat /home/mater/list.txt" entry. So. Following above explanation of SUID and SGID I assume. if s (HowTos)