0

I'm not able to remove the directory test:

$ ls -al
total 0
drwxr-xr-x+ 3 www-data www-data 0 Nov  6 07:11 .
drwxr-xr-x+ 5 www-data www-data 0 Nov  5 13:57 ..
drwsrwsrwx+ 3 www-data www-data 0 Okt  4 07:28 test
$ sudo rm -r test
rm: cannot remove 'test/subdir with spaces': No such file or directory
$ sudo rm -r ./*
rm: cannot remove './test/subdir with spaces': No such file or directory
$ ls -al test
ls: 'test/subdir with spaces': No such file or directory
total 0
drwsrwsrwx+ 3 www-data www-data 0 Okt  4 07:28  .
drwxr-xr-x+ 3 www-data www-data 0 Nov  6 07:11  ..
drwxr-xr-x  2 www-data www-data 0 Okt  4 07:28 'subdir with spaces'
$ sudo getfacl test
# file: test
# owner: www-data
# group: www-data
# flags: ss-

What I'm doing wrong? How can I delete this directory? The directory is located at a mounted hetzner storage box.

Thank you.

2
  • 1
    What is the id of the user of the commands?
    – xenoid
    Nov 13, 2019 at 8:50
  • Add output of id, stat test and lsattr test to your question (no comment).
    – Cyrus
    Nov 13, 2019 at 9:08

1 Answer 1

0

Try sudo rm -rf ./testif it doesn't work try to replace the current directory to a new one with the same name sudo mkdir ./test and then remove it again sudo rm -rf ./test.

1
  • sudo rm -rf ./test now worked ;-) I don't know, why, because I already used this command without success. Maybe it has something to do with the storagebox or a server reboot, which I did right before...
    – Andre
    Nov 14, 2019 at 5:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .