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.
Thread Tools Display Modes
Old 30th June 2010, 12:05
gilas gilas is offline
Join Date: Jun 2006
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default strange problem adding a new user to a group

Hi "moderator"
thank you for your great work.

I suffering due to a strange problem, here described:

o.s./sw data:
Debian Lenny
ISPConfig Version: 2.2.35

1. I added some code to force ISPConfig to add a news user to a group, for my o.s. is 'www-data'.

2. Looking for the code located in:

line # 534
function add_user_to_group($group, $user = 'admispconfig'){
the user is added correctly and the whole file /etc/group is updated (re-written).
All is ok, I verified it adding after this line:
$mod->file->wf($this->server_conf["group_datei"], $new_group_file);

3. just added a new user to the group create (i.e. web100), through the method:
this code:
$group_file = $mod->file->rf($this->server_conf["group_datei"]);
(then the group file /etc/group is read and saved into the $group_file var)
then I send the var via email:
mail("mymail@mydomain.ext","group file",$group_file);

4. all is ok I receive the whole content without problems and the www-data group is added.

5. some seconds after this I check with the linux command:
groups www-data

the output show (only) for few seconds the group added, i.e.:

www-data web10 web11 web100

6. I repeat the linux command described above (step 5)
and the group added disappeared!

what happens?!?

Thank you very much for your answer, cordially
Reply With Quote
Sponsored Links


add, group, user

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
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 14:29
mysql user names and databse names problem blocker General 4 15th December 2008 19:14
chgrp error new user DKA General 15 28th July 2008 18:45
Little problem with user dirs Nez Installation/Configuration 2 5th December 2007 23:21
User Add/Delete and FTP login problem. clabrown Installation/Configuration 3 23rd August 2007 20:12

All times are GMT +2. The time now is 19:51.

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