I was just wondering if you could have SGID and SUID permission together on one file. The way i understand this works is like this:
---s------ SUID perm
------s--- SGID perm
Then what do these perm mean?
/usr/bin/cu -r-sr-sr-x

June 24th, 2002, 04:03 PM

souleman

Quote:

-r-sr-sr-x

readable by owner
set uid on execute
readable by group
set gid on execute
readable by all
executable by all

Yes, both SGID and SUID can be set on one file...

June 24th, 2002, 05:27 PM

roswell1329

Hmm. I've never seen them both together like that, but it makes sense.

Then again, I don't really know when you would need to be both a different owner of a process, as well as be in a specific group. Wouldn't you just put the owner of the process in that group?