Hello all,
I have a file system with permissions:
drwxrwsr-x 49 pwcenter pwce1 4096 01 May 17:00 InFiles
Can someone explain the real significance of the 's' setting for group users please?
Cheers
Hello all,
I have a file system with permissions:
drwxrwsr-x 49 pwcenter pwce1 4096 01 May 17:00 InFiles
Can someone explain the real significance of the 's' setting for group users please?
Cheers
IT means that when anybody who is allowed to run the file, regardless of their current group, assumes the group id of the file - in other words you get the pwce1 group instead of your current group.
SUID bit doesn't work on scripts. I see most of the people set SUID bit on scripts.
SUID has some pros and cons, to know that check bellow link.
I hope it clears all your doubts.
UNIX/Linux Bash Shell Scripting: UNIX/Linux Advanced File Permissions - SUID,SGID and Sticky Bit