Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 未知用户权限(-myFile.php)_Linux_Admin_Chmod_Rights - Fatal编程技术网

Linux 未知用户权限(-myFile.php)

Linux 未知用户权限(-myFile.php),linux,admin,chmod,rights,Linux,Admin,Chmod,Rights,我对我的文件有一些古怪的用户权限 作为user1登录,我已经设置了user2文件的所有者。它确实奏效了 -rw-r-xr-x 1 user2 user2 21090 Jun 18 16:28 myFile.php drw-r-xr-x 2 user2 user2 4096 Jun 18 16:30 font 但是,当我使用user2登录时,我拥有这个未知的权限 -????????? ? ? ? ? ? myFile.php

我对我的文件有一些古怪的用户权限

作为user1登录,我已经设置了user2文件的所有者。它确实奏效了

       -rw-r-xr-x 1 user2 user2 21090 Jun 18 16:28 myFile.php
       drw-r-xr-x 2 user2 user2  4096 Jun 18 16:30 font
但是,当我使用user2登录时,我拥有这个未知的权限

       -????????? ? ? ? ?              ? myFile.php
       d????????? ? ? ? ?              ? font/

包含这些文件的顶级目录未设置“x”位

若要修复此问题,请在根目录的下一部分添加“x”位。通常“组”部分是相关的,但可能是“其他人”或“用户”,具体取决于您的情况

chmod g+x /path/to/directory

如需进一步阅读,请咨询

询问。尝试运行
fsck
。您的文件系统可能已损坏。
chmod g+x /path/to/directory