#1  
Old 16th March 2012, 07:38
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 240
Thanks: 0
Thanked 16 Times in 14 Posts
Default /etc/passwd "emptied"

Our server was recently upgraded from lenny to squeeze.
After an upgrade of ISPconfig to latest version, a few days passed without a hitch.
A user set a new password in the controlpanel and that emptied the /etc/passwd and only added that one user.

Any idea what may have caused this?

I have backup of /etc/passwd so I will go onsite to restore the passwd file ASAP.

Is there anyway to have ISPconfig be able to "restore" the file properly?
__________________
http://www.xh.se
Reply With Quote
Sponsored Links
  #2  
Old 16th March 2012, 08:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

After you restored the file, plesae check it with the commands:

pwck

and

grpck

Most likely the file was inconsistent which caused the problem as ispconfig edited it. ISPConfig can not restore the file as the passwords are kept only in the shadow file and not the mysl database, but ispconfig makes a backup of it with ~ attached to the filename.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 16th March 2012, 09:35
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 240
Thanks: 0
Thanked 16 Times in 14 Posts
Default

There was a number of old ispconfig added users

webX_usernames:x::::/dev/null

it seems like there are some erranous old usernames in the ispconfig database.

I've got users backed up luckily so I can restore and then manually prune these users.


Is it possible somehow to do a sanity-check on such users in ispconfigdb?
I noticed that these users dont exist under the associated site (not visibly).

Also checked the trashbin, nothing in there for those sites.
__________________
http://www.xh.se
Reply With Quote
  #4  
Old 16th March 2012, 10:35
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 240
Thanks: 0
Thanked 16 Times in 14 Posts
 
Default

Tried recreating the problem.
Added user, changed password. removed user.

passwd creates as normal now.

The only thing I could think "might" have caused the issue was if the backups were running at the same time and /etc/passwd or any other of the files updated were locked.

Does ispconfig2 have any checks to make sure these files arent locked to avoid a deadlock situation?
__________________
http://www.xh.se
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
How migrate users from /etc/passwd to Mysql? atomlab Installation/Configuration 1 7th November 2011 14:26
problem with /etc/passwd entry ispconfig 3.0.2.1 with jailkit 2.11 inittab Installation/Configuration 1 3rd July 2010 02:54
Problem with large /etc/passwd the_saint Installation/Configuration 1 14th July 2008 14:57
/etc/passwd wiped out after updating user via CP DantePasquale Installation/Configuration 4 25th April 2008 20:29
ISPConfig Messed up My /etc/passwd file! iratik General 4 30th June 2007 18:28


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


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