nick wrote: > Anyone know why I would lose my login on madrake. I was stepped through the > initial set up with help on the phone a week ago. But now the system at > boot up just now had to fix itself i guess. Anyway, I was warned that data > might be lost. As I say, its lost the login details after the repair and > now I cant get to the thing. It's bringing up a local host screen and I > think I need to recreate the user. Im not sure how thats done. Anyone help > me here please. > > thanks > > can you get a login prompt?. If you can still log in as root you will be able to run the deluser command from the console. Use the Midnight Commander (mc at the command prompt) to find it, it is at /usr/sbin/deluser on Debian. Then you can use the adduser command to recreate the account. If you are using an X-window log in it could be crashing during the X-window boot which will give you the console but with the keyboard locked out. This is harder. If you are booting with LILO,you can try "single" at the LILO prompt to start a single user console but it won't work if the command line is locked in the LILO configuration file. If necessary, use a Linux boot disk to get a command line, tomsrbt is recommended and a web search will find it. Mount the disk partition containing your /etc directory ('man mount' for help on the mount command}. If using a boot disk, you need a mount point for the filesystem. Usually this is /mnt. The command 'fdisk /dev/hda' will allow you to read the partition table and find out how the disk is partitioned. A second drive would be /dev/hdb etc. In the simple case '/bin/mount /dev/hda1 /mnt' will get you going assuming that all of Linux is on the first partition of the first hard disk drive.in this case the path to the /etc directory will be /mnt/etc and the boot disk /etc directory will be /etc (!). Once you have the filesystem containing the /etc directory mounted, you can edit the /etc/inittab file which controls the boot process. You need to change the default runlevel to give you a console login rather than a graphic shell login. look for a line like id:4:initdefault: On Debian this line causes a boot into run level four, or console mode. Check the comments in your file to see what change you need to make to get a console mode boot. Edit and save the file. If using the tomsrbt disk, use the pico editor. Reboot. You are hopefully now in console mode and looking at a login prompt. Login as root and do the deluser/adduser thing. Once console mode is working, try the command 'telinit x' (where x is the original default runlevel) to start X-windows.