2

I'm using Ubuntu 14.04 Server version. I want to enable the 'root' user login. I have tried with /etc/ssh/sshd_config file but no positive results comes out.Please help me providing the solution. Thanks in advance

1
  • 1
    Do you use SSH to login or console login?
    – SuB
    Nov 29, 2016 at 21:39

2 Answers 2

2

You should set password of root user to enable it. Use this:

sudo passwd root
2
  • Yes I have done all this things, butresult is null.I want to enable the root user login in login prompt. Nov 29, 2016 at 22:18
  • 1
    This command enable root user. Maybe some problem with permission or similar. What is inside of /var/log/auth.log?
    – Jim
    Nov 29, 2016 at 22:37
1

In /etc/ssh/sshd_config you need to comment or delete the line PermitRootLogin without-password
After that, add the line PermitRootLogin yes
Finally restart the SSH with service ssh restart

1
  • Yes I have done all this things, butresult is null.I want to enable the root user login in login prompt. Nov 29, 2016 at 22:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .