On Tuesday 06 January 2004 01:05 am, Lee B. wrote:

> When I boot from CD, press F1, type rescue, there is no selection for
> Maintenence. Not sure what "ncurses" is, but the selections include
> mounting volumes, fixing bootloaders, etc. There is a "command prompt"
> selection. I assume that's what I want. But the "passwd" program isn't
> found. Command is not recognized.
>
> BTW, I'm not the one with the original problem, just trying the
> procedure. :)

So much for my memory, been a while since I used the rescue mode on the DVD.  
One way you could do this is to create a single user boot mode in lilo by 
manually mounting /root, editing /etc/lilo.conf and then booting up there.  
Probably easier to simply issue the lilo single command when booting from the 
hard drive, though.

Another option is to boot up into failsafe mode, then from the ncurses prompt, 
choose to mount volumes to /mnt, then go to Maintenance mode, it will prompt 
for root password, enter it and you go to single user mode, from there you 
should be able to issue the passwd username command to change the password.

Another option, if your machine is up and you have webmin running, hit the 
machine from another machine and go into webmin.  https://ip.address:10000.  
Login as root and go to system, users and groups and from there you should be 
able to change the password and reenable the account if it has been disabled.

Another option, if you have more than one user account, ssh into the machine 
and su to root, issue the passwd username command.

I recommend failsafe, it is probably the easiest to do.  Webmin is also easy 
but assumes you have another machine attached to the LAN to access it.  The 
last method requires another user account and that sshd be installed and 
active on the machine.

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to