1

Issue

Impossible to remove folder as root.

root@local:/home/hosek/app/firefox.bak/updates# ls -la
total 12
drwxr-xr-x 3 hosek hosek 4096 pro  9 14:55 .
drwxr-xr-x 3 hosek hosek 4096 pro 10 11:06 ..
drwxrwxrwx 2 hosek hosek 4096 pro 10 11:06 0
root@local:/home/hosek/app/firefox.bak/updates# rm -rf 0
rm: cannot remove '0': Operation not permitted
root@local:/home/hosek/app/firefox.bak/updates# 

Why? Thanks.

1

1 Answer 1

1

It's possible that the directory is still in use, and therefore cannot be deleted.

What happens if you use the fuser command to see any PIDs running in the directory? Example:

MyTestServer: cd /home/postgres/logs
MyTestServer: fuser .
/home/postgres/logs: 40470c
1
  • Thank you, but I removed it already.
    – genderbee
    Dec 10, 2019 at 22:57

You must log in to answer this question.

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