LAMP Chapter3
LAMP Chapter3
Session 3
Revathi J
Bharathidasan University Technology Park (BUTP)
Bharathidasan University
Special permissions
• A fourth permission set (in addition to
user/group/other)
$ chmod 2770
$ ls –l groupdir
Example
• Create group
groupadd colleges
• Create users of the group
useradd -G colleges jmc
useradd -G colleges hcc
• Create group directory
mkdir /csdata
• Assign group directory to a group
chgrp colleges /csdata
• Create SGUID for group directory
chmod 2770 /csdata
Special Permissions for Directories
• Sticky Bit
Files and directories with the sticky bit set can only
be removed by the owner and root, regardless of the
write permissions of the directory.