ISPConfig permissions

Discussion in 'Installation/Configuration' started by MisterRichard, Jan 22, 2018.

  1. MisterRichard

    MisterRichard New Member

    Hi everyone,

    I was just setting up an ISPConfig box to do backups of the /var/www directory with tar :
    tar zcvf - /var/www/site.com.au/web/ | ssh [email protected] "cat > /storage/website_backups/site/"$(date '+%Y-%m-%d'-site).tar.gz""
    using key based authentication as a non-privileged user.
    In the web directory, the perms are as follows :
    drwx--x--x 4 web77 client1 44 Oct 5 00:30 web
    Can you foresee any issues if I change it to this :
    drwxr-x--x 7 web1 client1 4096 Dec 12 20:43 web ?
    So I can then add the non-privileged user to the client1 group so it can read the directory, then send the data offsite ?

    Does ISPconfig ever go back and change these permissions ? with updates etc ?

    Thanks,

    Richard
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The website will stop working. PHP scripts won't be able to write data anymore and your SSH and FTP users of that site will fail.

    Do the backup as root user for the while /var/www folder at once and use 'tar pcfz .....', so that permissions get preserved. Otherwise, the backup would be nearly useless.
     

Share This Page