简体   繁体   English

无法删除具有777权限的目录

[英]Can't delete directory with 777 permission

I have created a directory /var/dir as root and give permission like: 我已经以根用户身份创建了目录/var/dir ,并给予如下权限:

#chown -R kute:kute /var/dir
#ls-l /var/dir
#drwxrwxrwx  2 kute kute  4096 May 30 04:04 /var/dir

and then i login as kute and tried to delete the directory. 然后我以kute身份登录并尝试删除该目录。 but it shows like 但它显示像

rm: cannot remove `/var/dir': Permission denied rm:无法删除“ / var / dir”:权限被拒绝

And I can't give write permission to parent directory to delete the file 而且我无法授予父目录的写入权限以删除文件

That is because it is not a directory. 那是因为它不是目录。 Sorry, but that is a symbolic link as you can see when looking at the permissions. 抱歉,但是当您查看权限时,这是一个符号链接。 Whatever you did, you did not create that directory. 无论您执行什么操作,都不会创建该目录。 And the permissions line you posted certainly is not complete. 您发布的权限行肯定完整。 The inode the link points to is missing. 链接指向的索引节点丢失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Apache用户无法在777目录中创建文件 - Apache user can't create files in 777 directory PHP在Windows中创建具有777权限的目录 - PHP create directory with 777 permission in Windows 即使我将tcpdump的权限更改为777,为什么我的Android APP也不能使用tcpdump? - Why can't my Android APP use tcpdump eventhough I change the permission of tcpdump to 777? 目录具有777权限,但如果它是root或用户所有,则行为不同 - Directory has 777 permission but different behavior if it is root or user owned 为什么crontab:即使文件夹存在并且具有777权限,也不是这样的文件或目录? - Why crontab: not such file or directory even if the folder exists and has 777 permission? 除非具有777权限,否则Docker无法写入使用-v挂载的目录 - Docker can't write to directory mounted using -v unless it has 777 permissions 文件夹权限777不起作用 - folder permission 777 not working Codeigniter Linux 无法打开 stream:在 777 模式临时目录中创建图像文件/二维码的权限被拒绝 - Codeigniter Linux Failed to open stream: Permission denied on creating image file/qr code in 777 mode temp directory 将数据写入具有777权限的文件 - Writing data to a file with 777 permission 如何避免给予777许可 - how to avoid giving 777 permission
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM