#1  
Old 28th May 2010, 17:57
playcraft playcraft is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default /etc/group

Which file adds user admispconfig to the /etc/group file? I need to have it also add apache.
Reply With Quote
Sponsored Links
  #2  
Old 28th May 2010, 20:09
playcraft playcraft is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ispconfig rebuilds the group file on change which overwrites the file. So I need to have ispconfig add apache user along with admispconfig user.
Reply With Quote
  #3  
Old 15th September 2010, 17:32
playcraft playcraft is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default User add/edit after new website

Adding
PHP Code:
$mod->system->add_user_to_group("web".$doc_id,"apache"); 
to /ispconfig/scripts/lib/config.lib.php adds the user apache when the initial website is added to ispconfig. But when a user is added to a website then this is overwritten under a different function. I cannot locate the function.

Last edited by playcraft; 15th September 2010 at 17:51.
Reply With Quote
  #4  
Old 16th September 2010, 15:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

I think you can do this in the make_docroot() function in /root/ispconfig/scripts/lib/config.lib.php.
__________________
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 September 2010, 15:13
playcraft playcraft is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried that (see previous thread). This seems to only work when the website/domain is first created but when a user is added or deleted later it does not add apache therefore it makes me think there is a separate function.

Last edited by playcraft; 16th September 2010 at 15:20.
Reply With Quote
  #6  
Old 17th September 2010, 16:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

Then it's one of the user functions (user_insert, etc.), I guess.
__________________
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
Reply

Bookmarks

Tags
/etc/group, admispconfig, apache

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
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
postfix migration from old box to new box dexjul Server Operation 5 23rd April 2010 01:56
ISPConfig damaged my /etc/group ! :-/ NIXin General 4 22nd April 2008 00:18
/etc/group problem wpwood3 General 17 11th November 2007 16:01
ISPConfig blew away /etc/passwd and /etc/group digerata General 3 24th August 2007 22:26


All times are GMT +2. The time now is 12:48.


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