Setting Root Passwd Ubuntu 14.04

Written by Bima Firewall 0 comments Posted in:
Share

First enable the root account by running the command...

:~# sudo passwd -u root

Enter your personal password to continue...

Now reset - add the root password by running the command...

:~# sudo passwd root

You will be prompted for a new password for the root user

That's it, you can switch to root with the 'su' command...

:~# su

enter the root password...


Ah, but it's not over, if you try to login via SFTP as root you will find that your ignored, hmm, what have Ubuntu got against root?

Solution is to edit sshd_config...

:~# nano /etc/ssh/sshd_config

and edit line 28 from...

PermitRootLogin without-password

to

PermitRootLogin yes

Save changes and exit...

Then restart SSH...

:~# service ssh restart

There done, now you can login via SFTP as root.

Here endeth the lesson.


0 comments:



:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))

Post a Comment

Powered by Blogger.

Komentar