The 's' is the setguid bit. Like the infamous setuid, this runs the program with the processing effective group id set to the group of the file.
So, say the file is in the group "accounts", when it runs the group id of the program will be "accounts", regardless of what your current user group is.
Mike, sorry... you are wrong... thats the t bit when is over the last x. The SGID bit in a directory means "change the group of the new files in this directory to the group of the directory, not the group of the owner of the file". You can use this combined with the SVTX bit (the t in the perms) to create drop ony/put only directories.
If you are user [tt]john[/tt] in group [tt]staff[/tt] and you save/copy/move a file named [tt]MyLittleFile[tt] to a directory named [tt]Other'sDir[/tt] with owner [tt]admin1[/tt] and group [tt]admins[/tt] having the SGID bit set, then you'll end with the file [tt]Other'sDir/MyLittleFile[tt] owned by you ([tt]john[/tt] and with group [tt][red]admins[/tt][/red]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.