Home | Mirror | Search

第 21 章 Permission

目錄

1. umask
2. Access Permissions
2.1. chown - change file owner and group
2.2. chgrp - change group ownership
2.3. chmod - change file access permissions
3. chattr - change file attributes on a Linux second extended file system
4. su - run a shell with substitute user and group IDs
5. sudo, sudoedit - execute a command as another user
5.1. NOPASSWD
5.2. 允許或禁止命令
5.3. Cmnd_Alias 用法
6. ACL - Access Control List
6.1. getfacl - get file access control lists
6.2. setfacl - set file access control lists
6.2.1. set
6.2.2. default
6.2.3. remove
6.3. backup and restore

1. umask

[root@development ~]# umask
0022
[root@development ~]# umask -S
u=rwx,g=rx,o=rx		
		

設置

umask 002		
		
comments powered by Disqus