08-07-2013
Why didn't you boot into single user mode and reset the root password? It's usually better/safer to use the appropriate tools than to edit /etc/shadow manually.
9 More Discussions You Might Find Interesting
1. Solaris
I need to recover root password on a test server (E 10k) running solaris 9. Can someone please tell me how to do this? (1 Reply)
Discussion started by: nitinkgoud
1 Replies
2. Solaris
How to recover root password in solaris, I forgot root password.
thanks in advance (2 Replies)
Discussion started by: durgaprasadr13
2 Replies
3. Solaris
Dear All,
I have lost my data backup server's root password, just have a normal login username and password ..but i need to get back my root passwd....any1 can help me out plz :confused: (7 Replies)
Discussion started by: abir
7 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
we have "forget" the root password for 1 of our AIX machines,
how can we reset it? or recover it??
Thanks (1 Reply)
Discussion started by: prpkrk
1 Replies
5. AIX
Dears,
We have Oracle Database installed on AIX Version 5.3 and we have to take action urgently but must by root user but unfortunately we lost password.
How to recover root password?
Please, be noted that I am Oracle DBA and do not have experience in dealing with AIX Systems. Please, advise... (3 Replies)
Discussion started by: mohammedmostafa
3 Replies
6. Solaris
How can I recover root password :wall:
1) I am running Solaris 10 (X86) through VMware for practicing.
2) I was practicing root password recovery and deleted the password in /etc/shadow file.
3) Neither cant login the to the CLI nor Console
4) Selected the Soalris X86 failsafe in... (4 Replies)
Discussion started by: vijaykrishna
4 Replies
7. Red Hat
Hello forum members,
Please help me to recover the root password. i can login with the user in redhat linux but i forget root password. so pleas help me to recover.
advance thanks
siva. (2 Replies)
Discussion started by: workforsiva
2 Replies
8. UNIX for Advanced & Expert Users
we have NCR 3455 system from long time as attached all information for server (images) , so we need your help to assist us to get root password which lost it , really we appreciate your efforts if you can send us the procedure for resting the administrator (root) password which this server... (0 Replies)
Discussion started by: univoip
0 Replies
9. Solaris
Hello forum members,
Please help me to recover the root password. I have had difficulties working with Solaris 11.
The run-level equivalents single-user in Solaris 10, I can mount disk in one partition and edit files shadow/passwd.
For example:
{0} ok boot cdrom -s
# mount... (4 Replies)
Discussion started by: Marcela Bueno
4 Replies
LEARN ABOUT DEBIAN
sulogin
SULOGIN(8) Linux System Administrator's Manual SULOGIN(8)
NAME
sulogin - Single-user login
SYNOPSIS
sulogin [ -e ] [ -p ] [ -t SECONDS ] [ TTY ]
DESCRIPTION
sulogin is invoked by init(8) when the system goes into single user mode. (This is done through an entry in inittab(5).) Init also tries
to execute sulogin when the boot loader (e.g., grub(8)) passes it the -b option.
The user is prompted
Give root password for system maintenance
(or type Control-D for normal startup):
If the root account is locked, no password prompt is displayed and sulogin behaves as if the correct password were entered.
sulogin will be connected to the current terminal, or to the optional device that can be specified on the command line (typically /dev/con-
sole).
If the -t option is used then the program only waits the given number of seconds for user input.
If the -p option is used then the single-user shell is invoked with a dash as the first character in argv[0]. This causes the shell
process to behave as a login shell. The default is not to do this, so that the shell will not read /etc/profile or $HOME/.profile at
startup.
After the user exits the single-user shell, or presses control-D at the prompt, the system will (continue to) boot to the default runlevel.
ENVIRONMENT VARIABLES
sulogin looks for the environment variable SUSHELL or sushell to determine what shell to start. If the environment variable is not set, it
will try to execute root's shell from /etc/passwd. If that fails it will fall back to /bin/sh.
This is very valuable together with the -b option to init. To boot the system into single user mode, with the root file system mounted
read/write, using a special "fail safe" shell that is statically linked (this example is valid for the LILO bootprompt)
boot: linux -b rw sushell=/sbin/sash
FALLBACK METHODS
sulogin checks the root password using the standard method (getpwnam) first. Then, if the -e option was specified, sulogin examines these
files directly to find the root password:
/etc/passwd,
/etc/shadow (if present)
If they are damaged or nonexistent, sulogin will start a root shell without asking for a password. Only use the -e option if you are sure
the console is physically protected against unauthorized access.
AUTHOR
Miquel van Smoorenburg <miquels@cistron.nl>
SEE ALSO
init(8), inittab(5).
17 Jan 2006 SULOGIN(8)