Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor
New user
uploaded files
|
(linux_command_line)-> (Parent)->Fedora, RHEL password commands (root password) |
submited by Russell Wed 08 Mar 06 Edited Thu 04 Jun 09 |
as root to change root password:
# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
As root you can set another users password using the format
passwd username
As an unprivliged user, you can use the passwd command to change your own password, but you will need to provide your old password.
The new password takes effect immediately. (no reboot is required) It will be used for mail (pop/imap) ssh , ftp and telnet (if your still running that antiquated service) . Currently open sessions will continue to work, but any new session that is started will need the new password.
Now if you have lost the root password, and need to reset it that is another problem. But there is a way.
The simplest trick is to use the Single user mode.
at the grub boot, select append boot option and add a "1" for single user mode. This will boot linux to a root prompt. when this prompt comes up you can change the root password to whatever you want (as above) then reboot the machine as normal with the new root password that you selected.
Keywords:
change root password redhat command line SSH
|
Add comment or question...:
|