در این آموزش نحوه فعال سازی یوزر روت در سرورهای لینوکسی اوبونتو را نشان می دهیم
یوزر روت برای خیلی کارهای بخش سرور ابونتو لازم هست
1. How to enable root password ?
ehowstuff@ubuntu16:~$ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
2. How to Enable SSH Root Login on Ubuntu 16.04 (sshd_config -> change permitrootlogin to yes)
Open sshd config file :
# vi /etc/ssh/sshd_config

Comment out and add the following line :
.. # Authentication: LoginGraceTime 120 PermitRootLogin prohibit-password StrictModes yes ..

.. # Authentication: LoginGraceTime 120 #PermitRootLogin prohibit-password PermitRootLogin yes StrictModes yes ..
3. Finally, apply the changes by restart or reload sshd service :
# systemctl restart sshd