Sponsored Content
Full Discussion: Lost Root Password
Top Forums UNIX for Advanced & Expert Users Lost Root Password Post 52526 by norsk hedensk on Monday 21st of June 2004 05:33:22 PM
Old 06-21-2004
generally i believe if you delete the password for root in /etc/passwd you will be asked for a new password upon next reboot. this is the case correct? (luckily ive never lost my password Smilie)

but you cant do that with the OS that is on there if you dont already have the root password.

so, you have a few ways to do it. your goal is to mount that file system and change the /etc/passwd file.

first thing, you can rip out that harddrive and put it in another computer with an os on it already, so you can then mount that harddrive and edit accordingly. that however is a pain in the ass.

so, the easiet thing to do would be to boot from some cd and use that to mount that drive and edit the file.

your install cd is its OWN os. if you boot from that disk, look for an option to get to a command line. once you have a command line you are set. mount that drive, browse to
/etc/passwd and fix your computer!


as perderabo said, search, youll still find more info than what i have provided.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Root Password Lost !!!

I've forgotten root password on one of Solaris machines, i searched in forumes to find a similar case but there's no proceudre here to reinintialize root password, cause most of related commands & even single user mode needs root password that i don't have. Any solution would be helpful. --rgrds,... (9 Replies)
Discussion started by: nikk
9 Replies

2. UNIX for Advanced & Expert Users

I lost my password root

Hello ... I lost my password root ! maybe someone can to help me to log in HP_UX, i started the server in " Singel - User" and i changed my password to new password and it`s not working .. what i must to do ??? (4 Replies)
Discussion started by: yanly
4 Replies

3. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

4. Linux

how to access root priveliges if root password is lost

wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies

5. UNIX for Dummies Questions & Answers

Root Password Lost

I'm attempting to blank out the root user password on a machine that we have forgotten the password for. I have been using the advice posted on this site to boot from CDROM in single user mode, then mounting the root slice and editing the /etc/shadow file. Each time I save the shadow file and... (1 Reply)
Discussion started by: gonzotonka
1 Replies

6. AIX

lost root password in AIX

Hi how do you reset the root password in AIX. I booted to single user mode and it asked for login and password. I have AIX 4.3. Thanks (4 Replies)
Discussion started by: Welfaric
4 Replies

7. UNIX for Advanced & Expert Users

Help with Lost Root Password

This is a common question im sure... I bought a RS/6000 Model 240. Aix 4.3.3 loaded. No root password was supplied to me, but I do have the install media (4 disks). I want to drop into maint mode. So I place the cd into the drive, restart the box ( by pressing the power button, since i do not have... (3 Replies)
Discussion started by: JoeJohnSmith
3 Replies

8. UNIX for Dummies Questions & Answers

Lost root password unixware 7.1.4

Ive lost the root password , i dont have the cds , what can i do? (3 Replies)
Discussion started by: sopapa
3 Replies

9. SCO

unixware 7.1.4 lost root password

I dont have the cds, what can i do? (2 Replies)
Discussion started by: sopapa
2 Replies

10. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies
Jifty::Plugin::Authentication::Password::Dispatcher(3pm)User Contributed Perl DocumentatioJifty::Plugin::Authentication::Password::Dispatcher(3pm)

NAME
Jifty::Plugin::Authentication::Password::Dispatcher - password plugin dispatcher DESCRIPTION
All the dispatcher rules jifty needs to support "" in Jifty::Authentication::Password RULES
"before logout" Logout and return home. See Jifty::Plugin::Authentication::Password::Action::Logout. "before *" Setup the navigation menu for login or logout. "on qr/^(?:signup|lost_password)$/" Redirect to home if logged. Request a password reminder or signup for an account otherwise. "on login" Redirect to home if logged. Show the login form otherwise. "before reset_lost_password" Request a password reset. "before passwordreminder" Request a new password reminder to be sent by email. See Jifty::Plugin::Authentication::Password::Action::SendPasswordReminder. "before signup" Sign up for an account. See Jifty::Plugin::Authentication::Password::Action::Signup. "before login" Login to your account. See Jifty::Plugin::Authentication::Password::Action::Login. not_logged_in_nav Adds the login and signup links to the navigation menu. logged_in_nav Adds the logout link to the navigation menu. SEE ALSO
Jifty::Plugin::Authentication::Password, Jifty::Plugin::Authentication::Password::View COPYRIGHT
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself. perl v5.14.2 2010-12-10 Jifty::Plugin::Authentication::Password::Dispatcher(3pm)
All times are GMT -4. The time now is 03:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy