How to change the root password and retrieve the password in Linux
Source: Internet
Author: User
In Linux, modify the root password and retrieve the password as a root user. run the following command: # passwd user name (change password) # useradd user name (add user): [root @ bogon ~] # PasswdrootChangingpasswordf...
In Linux, modify the root password and retrieve the password as a root user. run the following command: # passwd user name (change password) # useradd user name (add user): [root @ bogon ~] # Passwd root Changing password for user root. new UNIX password: www.2cto.com bad password: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. how to retrieve the root password in liux ============================================ ========================================================== = linux root has the highest power, once the root password is forgotten or stolen, it is a headache. how can I retrieve the root password? I will summarize it as follows: (1) Linux system password cracking 1. press e in the grub option menu to enter the editing mode. 2. edit the line/init 1 (or/single) of the kernel 3. press B to restart 4. run the following command: root @ # passwd root (configure the root password) Enter new unix password: enter the new password root @ # init 6 ================================ ========================================================== ===== (2) debian linux system password cracking 1. in the grub option menu 'debian GNU/Linux ,... (recovery mode) ', press e to enter the editing mode 2. edit the ro single line of the kernel to rw single init =/bin/bash, and press B to restart 3. run the following command: www.2cto.com root @ (none) # mount-a root @ (none) # passwd root @ (none) # reboot ============================================ =============================================================== (three) freebsd system password cracking 1. boot into the boot menu 2. select each item (press 4) to enter the single-user mode. 3. enter the command root @ # mount-a root @ # fsck-y root @ # passwd (change password command)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.