Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!navarra From: navarra@casbah.acns.nwu.edu (John Navarra) Newsgroups: comp.unix.misc Subject: Permission Question Message-ID: <1991Mar9.212943.1961@casbah.acns.nwu.edu> Date: 9 Mar 91 21:29:43 GMT Sender: navarra@casbah.acns.nwu.edu (John Navarra) Distribution: na Organization: Northwestern University Lines: 36 I am running SunOS and I was wondering about the following: ls -lasd /somedir on my machine: 20 drwxrwsrwt 2 daemon staff 9728 Mar 9 12:37 /some dir Now you see that this dir has its sgid bit on which means (if I remember correctly) that when you make a file in this dir, it is given the same guid. Let's see: vi somefile ls -las | grep somefile: 2 -rw------- 1 navarra staff 2 Mar 9 12:41 somefile id: groups=20(users) I am not a member of staff but I wanted to see if I could do the following: cp /bin/sh /somedir/sh chmod g+s /sh ls -las | grep sh 224 -rwx--x--x 1 navarra staff 106496 Mar 9 13:18 sh AS you see I was not able to set this bit. I was wondering if you actually have to be a member of the group to set its bit? Is this true on all Unix systems? From the Lab of the MaD SCiEntIsT: navarra@casbaha.acns.nwu.edu