Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st April 2008, 22:20
NIXin NIXin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Angry ISPConfig damaged my /etc/group ! :-/

Hi all,
I just logged in to my box via SSH and saw a message:
Code:
id: cannot find name for group ID 0
I started investigating, before I could do anything at all, I noticed that apache is dead.

I've tried the following:
Code:
root@nixion:~# /etc/init.d/apache2 force-reload
apache2: bad group name www-data
   ...fail!
root@nixion:~# /etc/init.d/apache2 restart
 * Restarting web server apache2
* We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!
apache2: bad group name www-data
It didn't start. Bad group name? What's going on? So I immediately took a look at /etc/group. Before I have even pressed the F3 key which is View in Midnight Commander I noticed that the file is WAY to small (39 bytes). It had only one user inside. This wasn't cause of hacking or anything, I know the cause (ISPConfig). How do I know that? Because I was just editing the user that was lest in the truncated /etc/group. The whole file was this:
Code:
web19:x:10019:admispconfig,user19_lelum
Anyway... I just found out that I don't have a recent backup of /etc/group file. I'm using suPHP, so it's a must for me (error 500 otherwise). I recovered a group file from October 2007, but many newer sites I have created don't work. Not to mention some other broken stuff (didn't test ftp yet).
So... is there a way to recreate the /etc/group file, or at least to fetch the user list to recreate it manually?

Have a nice day. Thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 21st April 2008, 22:28
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,200
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

ISPConfig does not damagae group file which has the correct format. The group file must have been corrupted before you edited this user or another application was editing the group file at the same time. Do you run webmin on the server too?

To let ISPConfig recreate the groups, execute the following SQL staement in the ISPConfig database:

update isp_isp_user SET status = 'u' where status = '';

Then edit a user in the interface, change something and click on save.
__________________
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:
NIXin (21st April 2008)
  #3  
Old 21st April 2008, 23:10
NIXin NIXin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
ISPConfig does not damagae group file which has the correct format. The group file must have been corrupted before you edited this user or another application was editing the group file at the same time. Do you run webmin on the server too?

To let ISPConfig recreate the groups, execute the following SQL staement in the ISPConfig database:

update isp_isp_user SET status = 'u' where status = '';

Then edit a user in the interface, change something and click on save.
Thanks, I'll try it in a second. But, I don't have webmin, and nothing else was accessing the group file. It's like it vanished when ISPConfig was editing it.
One other thing started happening after this - the /etc/apache2/vhosts/Vhosts_ispconfig.conf doesn't get updated automatically. A file is created like this: Vhosts_ispconfig.conf_21-04-08_22-56-09, and it has current data inside, but the "Vhosts_ispconfig.conf" doesn't get replaced. What's the problem?
Reply With Quote
  #4  
Old 21st April 2008, 23:13
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,200
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Quote:
Originally Posted by NIXin
Thanks, I'll try it in a second. But, I don't have webmin, and nothing else was accessing the group file. It's like it vanished when ISPConfig was editing it.
One other thing started happening after this - the /etc/apache2/vhosts/Vhosts_ispconfig.conf doesn't get updated automatically. A file is created like this: Vhosts_ispconfig.conf_21-04-08_22-56-09, and it has current data inside, but the "Vhosts_ispconfig.conf" doesn't get replaced. What's the problem?
If you fix the gruop file probelm, this problem will be solved too.
__________________
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:
NIXin (21st April 2008)
  #5  
Old 21st April 2008, 23:18
NIXin NIXin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
If you fix the gruop file probelm, this problem will be solved too.
You are correct, it worked! Many thanks.
But I still don't know how did it come to this. :/

Have a nice day.
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
ISPConfig blew away /etc/passwd and /etc/group digerata General 3 24th August 2007 21:26
Ispconfig update problems from 2.4 to 2.6 adrenalinic Installation/Configuration 23 7th September 2006 12:58
4 questions about ispconfig and domains, please help! dimas Installation/Configuration 7 1st August 2006 11:55
Migrating from Virtualmin to ISPConfig xare Installation/Configuration 3 16th July 2006 12:58
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 21:14.


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