Web folders excluded from permissions being changed by ISPConfig

Discussion in 'Installation/Configuration' started by bswinnerton, Mar 15, 2008.

  1. bswinnerton

    bswinnerton New Member

    Hi there again (Your forum SQL database must be getting big by now from all these posts I put in =P)

    I was wondering if there was a way to disallow certain document roots from having their permissions changed by ISPConfig. Right now I have a script that automatically changes it, because I have one main user that has rights to all of the web folders.

    Here is the script so that you can get a better understanding:
    Code:
    !/bin/bash
    sudo adduser webuser webusers
    sudo adduser kevin webusers
    sudo  chgrp -R webusers /var/www/web1/web
    sudo  chgrp -R webusers /var/www/web2/web
    sudo  chgrp -R webusers /var/www/web3/web
    sudo  chgrp -R webusers /var/www/web4/web
    sudo  chgrp -R webusers /var/www/web5/web
    sudo  chgrp -R webusers /var/www/web6/web
    sudo  chgrp -R webusers /var/www/web7/web
    sudo  chgrp -R webusers /var/www/web8/web
    echo "Group permissions have been changed"
    sudo  chmod -R 775 /var/www/web1/web
    sudo  chmod -R 775 /var/www/web2/web
    sudo  chmod -R 775 /var/www/web3/web
    sudo  chmod -R 775 /var/www/web4/web
    sudo  chmod -R 775 /var/www/web5/web
    sudo  chmod -R 775 /var/www/web6/web
    sudo  chmod -R 775 /var/www/web7/web
    sudo  chmod -R 775 /var/www/web8/web
    echo "Webusers now have permissions to the web folders"
    
     
    Last edited: Mar 15, 2008
  2. till

    till Super Moderator

    Not without changing the ispconfig function make_docroot in the file /root/ispconfig/scripts/lib/config.lib.php
     

Share This Page