Sunday, 16 January 2022

LINUX - HOW TO ENABLE ROOT ACCESS IN LINUX

 How to enable root access in Linux

In a new linux server installation, by default root access is disabled.


In order to enable root access, login to the server with the authenticated user and switch the user to root by entering the command su - root 





Enter the password of the root and now open the file sshd_config stored on the path -  /etc/ssh/sshd_config by entering the coomand:- vi /etc/ssh/sshd_config



Now un-comment the entry #PermitRoot Login prohibited-password to PermitRoot Login yes and save the file by pressing Esc key and :wq



Restart the sshd service by entering the command:- sudo service ssh restart or service ssh restart



Once the service is restarted, you would be able to login via root user.




 

No comments:

Post a Comment