root user cannot remove, move, rename web folder of any added website?!

Discussion in 'General' started by PVasileff, Sep 16, 2013.

  1. PVasileff

    PVasileff Member

    Can you tell me why a root user cannot remove, move, rename web folder of any added website?

    Code:
    [email protected]: /var/www/domain.com $ mv web web_old
    mv: cannot move `web' to `web_old': Permission denied
    I try to use full path (not symlink of domain.com)

    Code:
    [email protected]: /var/www/clients/client1/web1 $ mv web web_old
    mv: cannot move `web' to `web_old': Permission denied
    the result is same..

    Interesting to me how come the root account has no rights to make these changes? These folders as system folder are marked or what?

    Can I fix that..
     
    Last edited: Sep 16, 2013
  2. rosehosting

    rosehosting Member

    can you post the permissions of the directories/files in question? also, what is the output of the 'id' or 'whoami' commands?

    did you verify that the directories/files do not have immutable flag? can you run those commands under 'strace' so we can know what sys calls are called?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The web directories are prtected. run:

    chattr -i /var/www/clients/client1/web1

    to remove the protection and when you are finished, protect it again with:

    chattr +i /var/www/clients/client1/web1
     
  4. PVasileff

    PVasileff Member

    Thanks, Till.
     

Share This Page