Server Broken

Discussion in 'General' started by alexillsley, Apr 3, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  2. mlz

    mlz New Member

    If you have access to the machine itself, boot into single user mode and fix your root account that way. If not.... UGH!
     
  3. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  4. mlz

    mlz New Member

    First make sure your password is still in shadow.

    If so you can add the following to the first line of /etc/passwd on many distributions:

    Code:
    root:x:0:0:root:/root:/bin/bash
     
  5. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  6. mlz

    mlz New Member

    Last edited: Apr 3, 2007
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    If you booted in knoppix, you must make sure that the harddisk is mounted in read/write mode. You can do this by right clicking on the harddisk icon on the desktop and select the read/write mode. Also make sure that you use a commandline editor to edit /etc/passwd, I've seen that some gnome and kde editiors say access forbidden to some system files to prevent them from being changed.
     
  8. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  9. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  10. falko

    falko Super Moderator ISPConfig Developer

    Have you tried Knoppix?
    Boot Knoppix, mount your hard disk read/write to /mnt (for example), then run
    chroot /mnt
    Then try
    Code:
    passwd root
    Or if that doesn't work, take a look at the useradd command.
     
  11. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    It wont let me do that :confused:

    [email protected]:/ramdisk/home/knoppix# chroot /mnt
    chroot: cannot run command `/bin/bash': No such file or directory

    By the way im on a raid disk so i have to hda2 and hdb2
     
  12. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Thanks anyway to everyone that helped:) , but i have just started rebuilding system so....
     

Share This Page