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 25th April 2008, 17:38
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 107
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
Post /etc/passwd wiped out after updating user via CP

Hi Till,

Maybe we should start a new thread on this, but I'm having major issues with /etc/passwd getting wiped clean whenever I update a user in the ISPConfig control panel.

I had a user that was having problems logging into e-mail, so I reset her password and saved. Now, the only entries in /etc/passwd are for most of my ISPConfig users, no system users are the passwd file!

So, now I can't even become root to fix it - or restore from backup - or even shutdown the server!

What can I do to help debug this problem?

I'm running ISPConfig v 2.2.22 on Ubuntu 7.10 - 64-bit, kernel Linux inferno.cocoanet.us 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 GNU/Linux.

I realize that with root gone I'm going to have to boot off of my rescue CD/USB drive and fix things and I can't get back to the server location for a few hours, but what should I do about this problem?

I see that you have v 2.2.23 out, but I understand that's just an update of ClamAV, or should I upgrade anyway?

Oh, I did an upgrade from 2.2.21 to 2.2.22 with no errors indicated and I didn't have this problem prior to upgrade.
Reply With Quote
Sponsored Links
  #2  
Old 25th April 2008, 17:49
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 107
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
Post

ISPConfig Log File:
Code:
25.04.2008 - 11:04:44 => INFO - USER: 
web8_webadmin:x:10015:10008:Web Administrator:/var/www/web8:/bin/bash
25.04.2008 - 11:04:44 => INFO - USER: 
web8_webadmin:x:10015:10008:Web Administrator:/var/www/web8:/bin/bash
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_webadmin 0 0 0 0 -a &> /dev/null
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_webadmin 0 0 0 0 -a &> /dev/null
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_webadmin 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_webadmin 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/.forward
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/.forward
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 117: symlink /var/www/web8/Maildir
25.04.2008 - 11:04:46 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 117: symlink /var/www/web8/Maildir
25.04.2008 - 11:04:47 => INFO - USER: 
web8_dantebell:x:10016:10008:Dante Bell:/var/www/web8/user/web8_dantebell:/bin/false
25.04.2008 - 11:04:47 => INFO - USER: 
web8_dantebell:x:10016:10008:Dante Bell:/var/www/web8/user/web8_dantebell:/bin/false
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_dantebell 10485760 10486784 0 0 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_dantebell 10485760 10486784 0 0 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_dantebell 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_dantebell 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_dantebell/.forward
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_dantebell/.forward
25.04.2008 - 11:04:47 => INFO - USER: 
web8_bcbgirl:x:10017:10008:Joanie Amato:/var/www/web8/user/web8_bcbgirl:/bin/false
25.04.2008 - 11:04:47 => INFO - USER: 
web8_bcbgirl:x:10017:10008:Joanie Amato:/var/www/web8/user/web8_bcbgirl:/bin/false
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_bcbgirl 1048576 1049600 0 0 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_bcbgirl 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_bcbgirl 1048576 1049600 0 0 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_bcbgirl/.forward
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_bcbgirl 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_bcbgirl/.forward
25.04.2008 - 11:04:48 => INFO - USER: 
web8_dantepasquale:x:10018:10008:Dante Pasquale:/var/www/web8/user/web8_dantepasquale:/bin/false
25.04.2008 - 11:04:48 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_dantepasquale 20971520 20972544 0 0 -a &> /dev/null
25.04.2008 - 11:04:48 => INFO - USER: 
web8_dantepasquale:x:10018:10008:Dante Pasquale:/var/www/web8/user/web8_dantepasquale:/bin/false
25.04.2008 - 11:04:48 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_dantepasquale 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:48 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_dantepasquale/.forward
25.04.2008 - 11:04:48 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_dantepasquale 20971520 20972544 0 0 -a &> /dev/null
25.04.2008 - 11:04:48 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_dantepasquale 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:48 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_dantepasquale/.forward
25.04.2008 - 11:04:49 => INFO - USER: 
web8_donziguy:x:10019:10008:DonziGuy:/var/www/web8/user/web8_donziguy:/bin/false
25.04.2008 - 11:04:49 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 905: WARNING: could not setquota -u web8_donziguy 1048576 1049600 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - USER: 
web8_donziguy:x:10019:10008:DonziGuy:/var/www/web8/user/web8_donziguy:/bin/false
25.04.2008 - 11:04:49 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 906: WARNING: could not setquota -T -u web8_donziguy 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 905: WARNING: could not setquota -u web8_donziguy 1048576 1049600 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 906: WARNING: could not setquota -T -u web8_donziguy 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_donziguy/.forward
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_donziguy/.forward
25.04.2008 - 11:04:49 => INFO - USER: 
web8_admispconfig:x:10023:10008:admispconfig:/var/www/web8/user/web8_admispconfig:/bin/false
25.04.2008 - 11:04:49 => INFO - USER: 
web8_admispconfig:x:10023:10008:admispconfig:/var/www/web8/user/web8_admispconfig:/bin/false
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_admispconfig 10240 11264 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_admispconfig 10240 11264 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_admispconfig 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_admispconfig 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_admispconfig/.forward
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_admispconfig/.forward
25.04.2008 - 11:04:49 => INFO - USER: 
web8_galadmin:x:10025:10008:Gallery Administrator:/var/www/web8/user/web8_galadmin:/bin/bash
25.04.2008 - 11:04:49 => INFO - USER: 
web8_galadmin:x:10025:10008:Gallery Administrator:/var/www/web8/user/web8_galadmin:/bin/bash
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_galadmin 0 0 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_galadmin 0 0 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_galadmin 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_galadmin 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_galadmin/.forward
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_galadmin/.forward
25.04.2008 - 11:04:49 => INFO - USER: 
web8_reseller:x:10027:10008:Reseller:/var/www/web8/user/web8_reseller:/bin/false
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_reseller 1048576 1049600 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - USER: 
web8_reseller:x:10027:10008:Reseller:/var/www/web8/user/web8_reseller:/bin/false
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_reseller 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 905: setquota -u web8_reseller 1048576 1049600 0 0 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 906: setquota -T -u web8_reseller 604800 604800 -a &> /dev/null
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_reseller/.forward
25.04.2008 - 11:04:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /var/www/web8/user/web8_reseller/.forward
25.04.2008 - 11:04:50 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
25.04.2008 - 11:04:50 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
25.04.2008 - 11:04:50 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
25.04.2008 - 11:04:50 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
25.04.2008 - 11:04:51 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: WARNING: could not postmap hash:/etc/postfix/virtusertable
25.04.2008 - 11:04:51 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: WARNING: could not postmap hash:/etc/postfix/virtusertable
25.04.2008 - 11:04:51 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1259: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
25.04.2008 - 11:04:51 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1259: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
25.04.2008 - 11:04:51 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2022: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
25.04.2008 - 11:04:51 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2022: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
dante@inferno:/home/admispconfig/ispconfig$ date
Fri Apr 25 11:43:08 EDT 2008
Reply With Quote
  #3  
Old 25th April 2008, 18:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

Please check your /etc/passwd file for syntax errors with the command:

pwck
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 25th April 2008, 19:19
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 107
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
Default

You mean after restoring? It passes when it's wiped out ;(

I'm sure it wouldn't pass because the /etc/gshadow file was wiped out previously (from yesterday's post).

So, I gather that somehow I need to fix /etc/passwd /etc/shadow /etc/group and /etc/gshadow. Anything else you can think of?

If I can restore the system users/groups and their respective shadow files, can I use the Control Panel to recreate the ISPConfig users? Would I do this one at a time?

Last edited by DantePasquale; 25th April 2008 at 19:43.
Reply With Quote
  #5  
Old 25th April 2008, 20:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

You can recreate the ISPConfig users and groups with the sql command that I posted in the gshadow thread. But ISPConfig is not able to restore the passwords of the users as the passwords are only stored in /etc/shadow
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
DantePasquale (25th April 2008)
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
Hacking attack (ubuntu 7.04 server + local root exploit on kernel) smoko General 4 15th September 2013 05:05
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
Ruby / FastCGI Problem Chad Server Operation 1 8th March 2008 20:38
log files cruz Technical 3 15th May 2007 14:35


All times are GMT +2. The time now is 00:58.


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