[英]Linux Directory Access Permission
Two directories have the same permissions like this 这两个目录具有相同的权限
drwxrw-rw- 2 user_1 users 4096 May 10 23:03 lg-x1 drwxrw-rw- 2个user_1个用户4096 5月10日23:03 lg-x1
drwxrw-rw- 2 user_1 users 4096 May 11 17:22 lg-c2 drwxrw-rw- 2个user_1个用户4096 5月11日17:22 lg-c2
when access lg-x1 with user_1, it shows: '-hash cd: lg-x1: Permission denied' ; 当使用user_1访问lg-x1时,它显示:'-hash cd:lg-x1:权限被拒绝'; but lg-c2 is accessable.
但是lg-c2是可访问的。 Both lg-x1 and lg-c2 are accessable when login with root.
使用root登录时,lg-x1和lg-c2均可访问。
what's the difference? 有什么不同?
In order to access a directory in Linux you need execute permissions. 为了访问Linux中的目录,您需要执行权限。 Only root has it, therefore other users cannot access it.
只有root用户拥有它,因此其他用户无法访问它。 Add x with the relevant
sudo chmod
you need 用您需要的相关
sudo chmod
添加x
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.