Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.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
';拒绝许可';在'中尝试mkdir;文件';在Windows 10上使用Linux的文件夹_Linux_Ubuntu_Permissions_Cygwin_Mkdir - Fatal编程技术网

';拒绝许可';在'中尝试mkdir;文件';在Windows 10上使用Linux的文件夹

';拒绝许可';在'中尝试mkdir;文件';在Windows 10上使用Linux的文件夹,linux,ubuntu,permissions,cygwin,mkdir,Linux,Ubuntu,Permissions,Cygwin,Mkdir,我运行的是Windows 10,并且尝试使用Cygwin、Git Bash和适用于Windows 10的Ubuntu子系统在“Documents”文件夹下创建一个文件夹,但没有成功 mkdir testfolder 也尝试过 sudo mkdir testfolder 我得到了结果消息mkdir:cannotcreatedirectory'testfolder':权限被拒绝 我试过以管理员的身份运行,我试过做chmod777文档,我在使用Ubuntu时是root用户,但似乎没有什么能解决这个

我运行的是Windows 10,并且尝试使用Cygwin、Git Bash和适用于Windows 10的Ubuntu子系统在“Documents”文件夹下创建一个文件夹,但没有成功

mkdir testfolder
也尝试过

sudo mkdir testfolder
我得到了结果消息
mkdir:cannotcreatedirectory'testfolder':权限被拒绝

我试过以管理员的身份运行,我试过做
chmod777文档
,我在使用Ubuntu时是root用户,但似乎没有什么能解决这个错误消息

另一个注意事项是,我在相同级别的其他文件夹(如“下载”或“桌面”)中创建目录没有问题


任何帮助都将不胜感激。谢谢

将您看到的权限与目录的
icacls
getfacl
进行比较。我不熟悉这一点,但是我在“文档”上运行了
getfacl
,得到了以下信息:
$getfacl Documents/#file:Documents/#owner:iantf#group:197609 user::rwx group::r-x other:r-x
我以iantf身份运行,并在我的W7上使用
whoami
确认
文档和
下载的所有者是
管理员
和这两个页面上都有一行类似于
user:iantf:rwx
group:197609
意味着现在当我运行
getfacl
时,某个被遗忘的用户已经创建了dir.Hmm,我在这两者上都得到了iantf:rwx:
$getfacl Documents/#file:Documents/#所有者:iantf#组:iantf用户::rwx组::rwx组:系统:rwx组:管理员:rwx掩码:rwx其他:---默认:用户::rwx默认:组::rwx默认值:组:系统:rwx默认值:组:管理员:rwx默认值:组:iantf:rwx默认值:掩码:rwx默认值:其他:--