after upgrade to ISPConfig 3.0.4.1 can not delete files

Discussion in 'General' started by grungy, Dec 13, 2011.

  1. grungy

    grungy Member

    Since I upgraded to ISPConfig 3.0.4.1 all new added domains have a problem - can not delete files in web folder. Permissions are right but still, no luck.


    Code:
    /var/www/domain.com/web$ ls -al
    total 36
    drwxr-xr-x 4 root   root      4096 2011-12-08 12:20 .
    drwxr-xr-x 6 root   root      4096 2011-12-08 12:20 ..
    drwxr-xr-x 2 web229 client154 4096 2011-12-08 12:20 error
    -rwxr-xr-- 1 web229 client154 7358 2011-12-08 12:20 favicon.ico
    -rwxr-xr-- 1 web229 client154   26 2011-12-08 12:20 .htaccess
    -rwxrwxrwx 1 web229 client154 1861 2011-12-08 12:20 index.html
    -rwxr-xr-- 1 web229 client154   24 2011-12-08 12:20 robots.txt
    drwxr-xr-x 2 root   root      4096 2011-12-10 00:30 stats
    
    
    # su web229 -s /bin/bash
    
    $ cd /var/www/domain.com/web/
    
    $ rm index.html 
    rm: cannot remove `index.html': Permission denied
    
    $ chmod 777 index.html
    
    
    $ rm index.html 
    rm: cannot remove `index.html': Permission denied
    
    

    It does not matter if I delete the domain, the client, add them both again, the same problem occurs again and again.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which security level have you set under System > Server Config > web? The recommended security Level is "high".
     
  3. grungy

    grungy Member

    This might be the problem:

    Code:
    # ls -al /var/www/domain.com/
    total 28
    drwxr-xr-x 6 root root 4096 2011-12-13 09:05 .
    drwxr-xr-x 3 root root 4096 2011-12-13 09:05 ..
    drwxr-xr-x 2 root root 4096 2011-12-13 09:05 cgi-bin
    -rw-r--r-- 1 root root   90 2011-12-13 09:05 .htpasswd_stats
    lrwxrwxrwx 1 root root   37 2011-12-13 09:05 log -> /var/log/ispconfig/httpd/domain.com
    drwxr-xr-x 2 root root 4096 2011-12-13 09:05 ssl
    drwxrwxrwx 2 root root 4096 2011-12-13 09:05 tmp
    drwxr-xr-x 4 root root 4096 2011-12-13 09:05 web
    
    
    
    
    
    # ls -al /var/www/old-domain.com/
    total 48
    drwxr-xr-x  8 root  root     4096 2011-12-13 00:35 .
    drwxr-xr-x  4 root  root     4096 2011-06-17 16:50 ..
    lrwxrwxrwx  1 root  root       17 2011-12-13 00:35 backup -> /var/backup/web70
    -rw-------  1 web70 client67 6514 2011-08-09 17:03 .bash_history
    drwxr-x--x  2 web70 client67 4096 2010-08-31 12:26 cgi-bin
    -rw-r--r--  1 root  root       85 2011-12-13 09:05 .htpasswd_stats
    lrwxrwxrwx  1 web70 client67   51 2010-08-31 12:26 log -> /var/log/ispconfig/httpd/old-domain.com
    -rw-------  1 web70 client67    8 2011-01-19 16:55 .nano_history
    drwx------  2 web70 client67 4096 2010-09-19 16:27 .ssh
    drwxr-x--x  2 web70 client67 4096 2010-08-31 12:26 ssl
    drwxr-xr-x  3 web70 client67 4096 2010-09-18 13:14 .subversion
    drwxrwxrwx  2 web70 client67 4096 2011-01-04 10:02 tmp
    drwx--x--- 15 web70 client67 4096 2011-06-14 11:10 web
    
    
    domain.com was added with ISPConfig 3.0.4.1,

    old-domain.com has no problems and was added with older version of ISPConfig.




    Security level - Medium
     
  4. grungy

    grungy Member

    I changed the security level to high and now everything works.
     

Share This Page