Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th March 2008, 15:52
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 17 Times in 14 Posts
Default Web folders excluded from permissions being changed by ISPConfig

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 by bswinnerton; 15th March 2008 at 22:41.
Reply With Quote
Sponsored Links
  #2  
Old 15th March 2008, 22:07
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,170
Thanks: 829
Thanked 5,412 Times in 4,255 Posts
 
Default

Quote:
I was wondering if there was a way to disallow certain document roots from having their permissions changed by ISPConfig.
Not without changing the ispconfig function make_docroot in the file /root/ispconfig/scripts/lib/config.lib.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig, postfix, dovecot: incorrect permissions arsen.gushin Installation/Configuration 9 4th March 2009 10:34
Folders in web address case sensitive tigerseyetech Installation/Configuration 3 29th May 2007 00:12
FTP user can access whole web folders Y2K.bug Installation/Configuration 2 16th February 2007 19:14
webftp does not show folders below web? Ben Installation/Configuration 7 28th July 2006 12:41
Page not found on ISPCONFIG web Philip_Anselmo Installation/Configuration 3 28th March 2006 10:37


All times are GMT +2. The time now is 14:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.