Cannot delete files

Discussion in 'Installation/Configuration' started by Dominick, Apr 15, 2013.

  1. Dominick

    Dominick New Member

    Hi everyone,

    Here's a summary of my configuration:

    Code:
    [root@shost ~]# cat /etc/redhat-release
    CentOS release 6.4 (Final)
    Code:
    ISPConfig 3.0.5.1
    The problem is that, since I updated to 3.0.5.1, I cannot delete any files placed in the root directory of any clients...

    I here's a log of what I tried...

    Code:
    [root@shost shost.ca]# rm -rf monitoring-cron.php
    rm: cannot remove `monitoring-cron.php': Permission denied
    [root@shost shost.ca]# ls -la monitoring-cron.php
    -rwxrwxrwx 1 web1 client2 1464 Apr 11 19:40 monitoring-cron.php
    [root@shost shost.ca]# chown root:root monitoring-cron.php
    [root@shost shost.ca]# rm -rf monitoring-cron.php
    rm: cannot remove `monitoring-cron.php': Permission denied
    [root@shost shost.ca]# lsattr monitoring-cron.php
    -------------e- monitoring-cron.php
    [root@shost shost.ca]# chattr -i monitoring-cron.php
    [root@shost shost.ca]# lsattr monitoring-cron.php
    -------------e- monitoring-cron.php
    [root@shost shost.ca]# rm -rf monitoring-cron.php
    rm: cannot remove `monitoring-cron.php': Permission denied
    This problem is for every files that are in the root, files/directories, I can change the owner and permissions without any problems...

    The security was set to High, I tried putting it to medium and Resync all the websites, and it doesn't change anything.

    Since everything is blocked, and it was screwing my crons, I moved everything to private/...

    Any ideas would be great.
     
    Last edited: Apr 15, 2013
  2. Dominick

    Dominick New Member

    I got read of the files by changing the attributes to the folder itself.

    Code:
    [root@shost home]# chattr -i web1
    [root@shost home]# cd shost.ca/
    [root@shost shost.ca]# rm -rf monitoring-cron.php
    
    And it worked!
     

Share This Page