Discussion in 'General' started by alexillsley, Apr 3, 2007.
----- expired ----
If you have access to the machine itself, boot into single user mode and fix your root account that way. If not.... UGH!
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:
Most systems you type linux 1 at the boot prompt. What distro are you using?
Here's a link for how to get in using lilo or Grub:
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.
Have you tried Knoppix?
Boot Knoppix, mount your hard disk read/write to /mnt (for example), then run
Or if that doesn't work, take a look at the useradd command.
It wont let me do that
[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
Thanks anyway to everyone that helped , but i have just started rebuilding system so....
Separate names with a comma.