Unlocking root account Ubuntu 14.04 (Trusty) Ubuntu 16.04 (xenial)
By default root account is locked on the system .
Nobody directly logins to system as root but you can issue sudo to issue commands as root user .
For some applications it is required to have root account unlocked so that files can be saved in certain folders for eg in case of Ambari-server installation ssh public keys (id_rsa.pub) need to be stored as authorized_keys in .ssh directory of root account .
Here is the way to unlock root account .
1) Enable Password for rood user-id
sudo passwd root
2) Unlock root account
sudo passwd -u root
To test :
Switch to root user Issue
su - root
pwd <<---present working director
Hope it helps !!!
Enjoy !!
No comments:
Post a Comment