-rw------- 1 sato_y sato_y 19 Aug 15 2018 _complete
drwx------ 2 sato_y sato_y 68 Aug 15 2018 files
-rw------- 1 sato_y sato_y 673 Aug 15 2018 _invocation
[sato_y@ircms-icals fork0]$ rm _complete
rm: cannot remove ‘_complete’: Permission denied
我在尝试删除存储服务器目录中的文件时遇到错误。如上面的示例所示,当我尝试删除该文件时,我收到一条“权限被拒绝”消息。我检查了一下,该文件及其所在目录属于我,具有写入权限。
但是,当我创建一个新目录并将文件移动到该目录中时,我能够删除它,如下所示。
-rwx------ 1 sato_y sato_y 19 Aug 15 2018 _complete
drwx------ 2 sato_y sato_y 68 Aug 15 2018 files
-rw------- 1 sato_y sato_y 673 Aug 15 2018 _invocation
[sato_y@ircms-icals fork0]$ mkdir delete
[sato_y@ircms-icals fork0]$ mv _complete ./delete/
[sato_y@ircms-icals fork0]$ ll
total 448
drwx------ 3 sato_y sato_y 102 Mar 4 2019 delete
drwx------ 2 sato_y sato_y 68 Aug 15 2018 files
-rw------- 1 sato_y sato_y 673 Aug 15 2018 _invocation
[sato_y@ircms-icals fork0]$ rm -rf delete
[sato_y@ircms-icals fork0]$ ll
total 384
drwx------ 2 sato_y sato_y 68 Aug 15 2018 files
-rw------- 1 sato_y sato_y 673 Aug 15 2018 _invocation
每当我尝试删除目录时,都会有一些无法删除的剩余文件,我必须采取此步骤(创建新目录,将所述文件传输到其中并删除新目录)来完全删除所有内容。
以前有人遇到过类似的问题吗?