/etc/passwd wiped out after updating user via CP

Discussion in 'Installation/Configuration' started by DantePasquale, Apr 25, 2008.

  1. DantePasquale

    DantePasquale HowtoForge Supporter

    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. :confused:
     
  2. DantePasquale

    DantePasquale HowtoForge Supporter

    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
     
  3. till

    till Super Moderator

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

    pwck
     
  4. DantePasquale

    DantePasquale HowtoForge Supporter

    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: Apr 25, 2008
  5. till

    till Super Moderator

    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
     

Share This Page