Special permissions - sgid
SGID(set group ID):-
*******************
-> it is applied for dir to change the ownerships of a dir recursively for upcoming files & dir in that perticular dir
-> it is represented by "s" and in terms of numbers we have "2".
to apply SGID:-
***************
#chmod g+s <directory path>
ex: #chmod g+s /root/d1
#ls -ld /root/d1
drwxr-sr-x -- ---- ---- /root/d1
remove the SGID permission:-
***************************
#chmod g-s /root/d1
stick bit:-
**********
-> it is used to enforce other users from deleting files & dir created by root user or normal user.
-> it is applied for others
-> it is represented by "t" it terms of numbers "1"
-> it can only be applied for dir but not files
to apply sticky bit:-
********************
#chmod o+t <file/dir name>
Comments
Post a Comment