[英]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.