[关闭]
@bornkiller 2014-08-12T06:20:24.000000Z 字数 771 阅读 2591

linux 文件权限管理

linux


文件权限

  1. [root@localhost static]# ls -al
  2. drwxr-xr-x. 2 root root 4096 7 24 13:34 .
  3. drwxr-xr-x. 5 root root 4096 7 24 09:25 ..
  4. -rw-r--r--. 1 root root 1095 7 24 13:34 default.conf
  5. -rw-r--r--. 1 root root 427 7 24 09:31 example_ssl.conf
  6. -rw-r--r--. 1 root root 3957 7 24 09:26 mime.types
  7. -rw-r--r--. 1 root root 643 7 24 09:27 nginx.conf
  8. ##信息依次为文件权限、连接数、文件持有用户、文件所属用户组、文件大小、时间信息

文件权限

修改文件/目录权限

chgrp

chgrp [-R] usergroup directory/filename

chown

chown [-R] username:usergroup directory/filename

chmod

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注