If this is a Red Hat install you can boot to single user from the LILO:
prompt with:
linux single
Then you can passwd to make your changes and reboot and all should be well
again.
Cheers,
Eric
"Be patient. Evolution isn't finished with us yet."
--Soloman Short
On Thu, 24 Jun 1999, Gary Coady wrote:
> On Thu, Jun 24, 1999 at 08:42:56AM +0100, kevin at suberic.net wrote:
> > Bernard Murphy burst across the net:
> > >Having logged in for months under root suddenly I am told that either the user
> > > or password name is incorrect.
> > >
> > >Nothing in that area has been changed ??
> > >
> > >SU keeps me locked out as well. Can anybody throw some light on that one - or
> > >how can I get back - or am I dead !!!!!!
> >
> > is root in /etc/passwd? when was /etc/passwd last changed? might you
> > have typed passwd in a root window when meaning to do it in your own
> > account?
> >
> > you might want to do an init 1 at the console which should bring the machine
> > down to single user... wait, you don't have root. reboot, and type linux 1
> > at the boot prompt. then you'll get a shell prompt. then run passwd.
>> I dunno - I've found that Redhat seems to ask for the root password when
> booting into single-user mode - if it does in this case, try instead
>> linux init=/bin/sh
>> at the boot prompt, and that'll get you a shell.
>> --
> Gary Coady - gary at netsoc.tcd.ie - http://www.netsoc.tcd.ie/~gary/> | It might look like I'm doing nothing, but at the cellular level I'm
> | really quite busy.
>> Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!