Need Help, /etc/passwd,shadow,groups All EMPTY!

Discussion in 'Installation/Configuration' started by joshenry, May 16, 2007.

  1. joshenry

    joshenry New Member

    Kay really weird. I used ISPConfig to give someone an autoresponder which didn't give me any errors or anything. Once that was done all three of those files were empty.

    I was going to implement the backup solution for this box today, been testing it on another box for problems but no problems for that box...didn't get it on this one in time for a backup. So I'm retarded and don't have a backup I can recover from, will probably have to rebuild the files by hand.

    ISPConfig still shows the users that have been created in the past but no one can access their mailbox as their users don't exist.

    Why would ISPConfig empty those files? I'm not sure what logs to post or what information to give as this is making me nervous...all the work that I have to do to get this thing running again...

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely theare where syntx errors in these files. Did you manage users with other programs beside ISPConfig?

    Please check the ispconfig.log file in /home/admispconfig/ispconfig/ for errors.

    Maybe there is still a backup version of the files with a ~ appended to the name.
     
  3. joshenry

    joshenry New Member

    I've learned (even though I'm a newb) never to edit those files by hand. I've only ever used useradd or ISPConfig to add users. The ~ files were the same as the broken ones, empty. I'm rebuilding everything again so it's not as big of a deal as it was but I'm just curious to why this has happened.

    I looked through the ispconfig.log and I couldn't see any errors or problems that would cause it to remove all the data from inside those files.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /root/ispconfig
    ?
     
  5. joshenry

    joshenry New Member

    Code:
    [root@mail1 cur]# ls -la /root/ispconfig
    total 104
    drwxr-xr-x   9 root root  4096 May 16 22:38 .
    drwxr-x---   4 root root  4096 May 17 10:36 ..
    -rwxr-xr-x   1 root root 33609 Feb  8 14:37 cronolog
    -rwxr-xr-x   1 root root  9673 Feb  8 14:37 cronosplit
    drwxr-xr-x  12 root root  4096 Feb  8 14:28 httpd
    drwxr-xr-x  12 root root  4096 Feb  8 14:37 isp
    -rw-r--r--   1 root root     8 May 16 22:38 .old_path_httpd_root
    drwxr-xr-x   6 root root  4096 Feb  8 14:20 openssl
    drwxr-xr-x   6 root root  4096 Apr 11 12:50 php
    drwxr-xr-x   4 root root  4096 Feb  8 14:37 scripts
    drwxr-xr-x   4 root root  4096 Feb  8 14:37 standard_cgis
    drwxr-xr-x   2 root root  4096 Feb  8 14:37 sv
    -rwx------   1 root root  9389 Feb  8 14:37 uninstall
    [root@mail1 cur]#
    
     
  6. joshenry

    joshenry New Member

    Well the higher powers from above have spoken and I've had to remove ISPConfig.
    Now I have another problem. I went through the uninstall but now the admispconfig user was removed but the mail that is going to that user for quota (I'm assuming), so the root user (which I'm getting all the mail for) is having about 75 messages every 10 seconds delivered and all into my mailbox...I've re-added that user to stop the messages to me but how can I stop the messages for good?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    You will either have to reinstall ISPConfig or remove all procmail recipes from the email accounts created by ISPConfig. The procmail recipes are stored in the home directories of the email users, the files are hidden, so you may get a list of the files only with the command "ls -la" in the directory.
     

Share This Page