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 1st February 2007, 16:11
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default How To Add user 'apache' into new group

I would like to add the user 'apache' to any new group created using ISPConfig.

Currently, whenever I created a site, ISPConfig will create the necessary user and group. By default, the ISPConfig will add the user 'admispconfig' into that new group.

Quote:
admispconfig:x:501:admispconfig
web1:x:10001:admispconfig,www.domain1.com
web2:x:10002:admispconfig,www.domain2.com
What I need is to also include the user 'apache' into any newly created account.

Quote:
admispconfig:x:501:admispconfig
web1:x:10001:admispconfig,apache,www.domain1.com
web2:x:10002:admispconfig,apache,www.domain2.com
I know that the script to modify is /root/ispconfig/scripts/lib/config.lib.php but the comments are in german and I don't wish to break the codes by modifying it blindly. Plus I am not really that great with PHP. So, any help is greatly appreciated.

PS : By default, any files created is given the permission of 644. How can I can it to default to 664. Thanks. FYI, I am running fedora Core 5
Reply With Quote
Sponsored Links
  #2  
Old 2nd February 2007, 09:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Please add the line:

$mod->system->add_user_to_group("web".$doc_id,"apache");

at line 118 in the file /root/ispconfig/scripts/lib/config.lib.php.

Quote:
PS : By default, any files created is given the permission of 644. How can I can it to default to 664. Thanks. FYI, I am running fedora Core 5
The permissions of uploaded files are configured in the proftpd.conf file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd February 2007, 10:46
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks Till,

Glad to know that I chose the right control panel for my servers. Wonderful product and great support.

Would there be any future development of ISPConfig to use mySQL for Postfix. Would be a great and easier to migrate user accounts from one server to another, unless there is an easier way to do it now.

Thanks again.
Reply With Quote
  #4  
Old 2nd February 2007, 13:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by asyadiqin
Would there be any future development of ISPConfig to use mySQL for Postfix. Would be a great and easier to migrate user accounts from one server to another, unless there is an easier way to do it now.

Thanks again.
This is planned for version 3 of ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th November 2007, 16:59
ZuG ZuG is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

I think you mean line 1118... took me a minute to figure this out.
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 15:55
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
apache user rbartz Installation/Configuration 4 27th April 2006 12:59


All times are GMT +2. The time now is 07:46.


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