LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File Permissions: The "s" in drwxr-sr-x (https://www.linuxquestions.org/questions/linux-general-1/file-permissions-the-s-in-drwxr-sr-x-508553/)

zok 12-08-2006 09:06 AM

File Permissions: The "s" in drwxr-sr-x
 
Can anyone tell me what the "s" means for a directory with the permissions drwxr-sr-x?

Thanks,
Jason

ygloo 12-08-2006 09:21 AM

SGID (set group ID) on a directory: in this special case every file created in the directory will have the same group owner as the directory itself (while normal behavior would be that new files are owned by the users who create them). This way, users don't need to worry about file ownership when sharing directories:

mimi:~> ls -ld /opt/docs
drwxrws--- 4 root users 4096 Jul 25 2001 docs/

mimi:~> ls -l /opt/docs
-rw-rw---- 1 mimi users 345672 Aug 30 2001-Council.doc

This is the standard way of sharing files in UNIX.

------------------------------------
http://tldp.org/LDP/intro-linux/html/sect_03_04.html


All times are GMT -5. The time now is 12:16 PM.