Deleting folders inside /var/www/virtual/domain.tld

  • Hi,


    i switched the server and transfered all backups to a new I-MSCP installed server. After restoring the backups I have some folders (subdomains) which are no longer needed. Its not possible to delete them using user root. Can you please tell me how to delete them?

  • unprotecting the folders worked for me. now i can delete unwanted folders/files as root user - thx!


  • What's your command to do that?


    Maybe the protection is on?


    But its strange, that the user root can not delete it...


    The immutable bit, once set, operate also for the root user ;)



    Code
    1. +i is to set the immutable bit to prevent even root from erasing or changing the contents of a file.


    Note: i-MSCP is not using the chattr command to set the attributes. It use the ioctl(2) function as implemented in Perl. See https://github.com/i-MSCP/imsc…b/iMSCP/Ext2Attributes.pm for further implementation details.


    Ref: http://en.wikipedia.org/wiki/Chattr

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

    Edited once, last by Nuxwin ().