Computing.Net > Forums > Unix > unix password reset

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

unix password reset

Reply to Message Icon

Name: Eric Johnson
Date: June 28, 2002 at 10:20:10 Pacific
Comment:

I am looking for a script that will run from my Win2k machine, on a 2000 domain, and reset a password, or change a password on a Unix box. Does anyone know of or have a script that will do this?
Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: snehalkumar
Date: July 3, 2002 at 01:53:21 Pacific
Reply:

HI ERIC

I dont know from windows but through unix I give U solution


Boot from your unix bootable floppy then mount /dev/hdoroot /mnt

This will mount your HDD's root file system on /mnt

if hdoroot not exist then create with this command

mknod /dev/hd0root b 1 42

then edit /mnt/etc/passwd Edit /mnt/etc/passwd. The first line will be your root line, such as

root:encryptedpasswordgoeshere:0:0:God,Everywhere:/:/bin/sh
Edit out the encrypted password (don't touch anything else!) so that the line reads something like

root::0:0:God,Everywhere:/:/bin/sh
Save the file and shut down. Reboot from the hard drive. Your root password has now been removed, and you can reset it normally.


NO FUN


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: unix password reset

password reset to the mass.. www.computing.net/answers/unix/password-reset-to-the-mass/6892.html

trying to synch Unix passwords with NT 4.0 domain passwords www.computing.net/answers/unix/trying-to-synch-unix-passwords-with-nt-40-domain-passwords/1770.html

i forgot my unix password www.computing.net/answers/unix/i-forgot-my-unix-password/1226.html