View Single Post
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:
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:
root@nixion:~# /etc/init.d/apache2 force-reload
apache2: bad group name www-data!
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:
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