Ü
0677 [permission]
v
SUID
· Value – 4
· If set value run as owner of file
· Use for file
· chmod u+s file1 | chmod 4677 file1 | rwx+s=rws | rw-+s=rwS
v
SGID bit
·
Set Group ID
· Value – 2
· Use for Directory
· chmod g+s file1 | chmod 2677 file1 | chmod g-s file1
· Value – 2
· Use for Directory
· chmod g+s file1 | chmod 2677 file1 | chmod g-s file1
v
STICKY
bit
·
Set Others ID
· Value – 1
· Use for Directory
· Anyone can create directory and can be deleted only who created not others
· chmod o+t file1 | chmod 1677 file1 | chmod o-t file1
· Value – 1
· Use for Directory
· Anyone can create directory and can be deleted only who created not others
· chmod o+t file1 | chmod 1677 file1 | chmod o-t file1
Tags
RHCSA