deklinm
asked on
Linux
how do i change the root password in Linux?
enter "passwd root"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
as root user run
passwd
you will not be prompted for old password
but if you are some other user then use
passwd root
and you will be prompted for old root password
passwd
you will not be prompted for old password
but if you are some other user then use
passwd root
and you will be prompted for old root password
Do you still have the old root password? The above answers only work if you do. Otherwise you have to reboot with init=/bin/bash appended to the boot command line. That gives you a root shell prompt and then you change the password as in http:#a37309842 above.
The procedure for appending to the boot line is explained here
The procedure for appending to the boot line is explained here
if you under ubuntu, you have sudo to use root permissions, do not actualy need root password, and root login, (for security), u can use
sudo -sH
sudo su
to run as root,
also sudo *command* run it as root, but without root enviroment, it's not actualy need, only if you install Oracle/or something, that use u'r system enviroment
but if you still need root pass/ or forget old
type:
passwd root
sudo passwd
sudo -sH
sudo su
to run as root,
also sudo *command* run it as root, but without root enviroment, it's not actualy need, only if you install Oracle/or something, that use u'r system enviroment
but if you still need root pass/ or forget old
type:
passwd root
sudo passwd