Acl access control and quota chmod o + t test === chmod 1644 test Set stic bit chmod u + s test === chmod 4644 test Set uidchmod g + s test === chmod 2644 set gidACL for test: access control listsettacl, getfaclgetfacl test get the original permissions of the file setfacl www.2cto.com-m set the permission bit-x cancel the permission bit setfacl-m u: student: rw filename does not support acl by default when you set acl for the newly created mount partition. The options displayed when acl is set do not support mount-o remount, acl/dev/sda5/sharesetfacl-x u: user filename setfacl-x u: redhat a.txt cancel aclgetfacl a.txt view the original permissions of the file setfacl-m g: group filename set aclsetfacl-m g for the group: group filename: Set aclsetfacl-m g: jing: rw-. root (jing is a group) setfacl-x g: jing. root remove group for file. root aclsetfacl-m d: u: g: o u: username: rwx filed: Used to set default permissions for files or directories to set the acl format d: u: if acl is set for the target user, new files or directories created by other users in this directory will inherit the permissions of this directory setfacl-m d: u: redhat: rwx web Settings file mask bit setfacl-m: rw-test Set mask bit only allow rwsetfacl-x m: rw-test cancel permission setfacl-m o: rw file quota: disk Quota limit the number of files and directories that can be created by common users or the number of inode can be applied to users or groups of disk quotas: Quota does not take effect for administrators. The kernel implements partition Quota types for file systems: soft limit: You can extend the hard limit to the specified quota: when the specified quota is reached, you cannot use the disk quota configuration: www.2cto.com to set a special Mount Option userquota (user) when the Group is enabled, two files, aquota, are generated. user aquata. add # vim/etc/fatab in vim/etc/dev/vol0/home ext3 defaults when group is enabled, usrquota 1 2 # mount-o remount/home # mount # quotacheck-cum/home ls/home will generate aquota. user quotaon/home enable quota to restrict the home Directory disk of user florian # edquota florian test: # su-florian # quota # dd if =/dev/zero of = myfile bs = 1 k count = 1024 command mode set the user's hardware and software restrictions setquota jing 1200 1500 100 120/home non-interactive add disk quota to users soft limit 1500 hard limit edquota-t set grace period warnquato notification that users who have exceeded the disk limit will be off by email quotaoff/home