From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,53ebf0b6d732c247 X-Google-Attributes: gid111c93,public From: miquels@cistron.nl (Miquel van Smoorenburg) Subject: Re: Single-user mode from MILO Date: 1998/02/09 Message-ID: <6bnhad$33o$1@defiant.cistron.nl>#1/1 X-Deja-AN: 323497018 References: <1998Feb9.161617.27520@leeds.ac.uk> X-Server-Date: 9 Feb 1998 18:19:03 GMT Organization: Cistron Internet Services B.V. Newsgroups: comp.os.linux.alpha In article <1998Feb9.161617.27520@leeds.ac.uk>, John Armstrong wrote: >This may be another of those FAQs that I invariably ask if I post to a >newsgroup ... > >Is there a way at the MILO prompt to restart my Linux/Alpha machine in >single-user mode? I haven't found anything in any of the MILO documentation >that I have access to. > >Somehow my root password has 'become corrupted' so I have no privileged account >on this machine. I cannot do a controlled shutdown from any of my >non-privileged accounts, nor can I edit the password file. I hoped to do a >single-user startup so I can remedy the situation - I imagined that there might >be a suitable MILO boot-string to pass to the kernel for this. Is there? > >I don't want to shutdown and 'try it out' at the moment, because this machine >acts as a mail server for some of our incoming email, and is set to restart >without the network interfaces activated ... no root, no networks, no mail! Something like: MILO> boot sda1:/vmlinux.gz root=/dev/sda1 single should give you a sulogin prompt, but you still need to enter the root password. Sulogin does do a good job in finding out it the root password, or the password file, has been corrupted and skips the password: prompt if so (at least it accepts everything as a password then). Another option is: MILO> boot sda1:/vmlinux.gz root=/dev/sda1 init=/bin/sh Which starts up a shell instead of init. You'll have to remount root rw (mount -n -oremount,rw) at that point and then you can edit the password file. Remount the root file system ro after that and reboot. Mike. -- Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed miquels@cistron.nl | awake all night wondering if there is a doG