rm as root: Permission denied

  • Hey there,
    I've got a strange problem. I had a subdomain called old and so also a folder in:

    Quote

    /var/www/virtual/domain.tld/old/*


    From admin panel I removed the subdomain, all worked without problems, only that the folder old (now empty) still exists. So I logged into ssh as root, tried to remove it and got this message:

    Quote

    rm: cannot remove `old': Permission denied


    I also changed the folder permissions to 777, the user/group to root and something else and set the force parameter to rm (rm -Rf), but nothing helped. Does anyone have an idea where the problem could be?


    Thanks!

  • Hi Ninos,


    have you checked the directory for the purpose of chattr (immutable bit)?

  • tried chattr -R -i old but didn't solve my problem :/

  • okay, really strange,
    I would check the file system.

  • I'll set it tonight into the rescue mode and try there to delete the folder &| check the system :)

  • Hello ;


    tried chattr -R -i old but didn't solve my problem :/


    Please, do this before:


    Shell-Script
    1. chattr -R -i /var/www/virtual/domain.tld
    2. rm -r /var/www/virtual/domain.tld/old


    because chattr -R -i on the old directory is not sufficient.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206