آموزش فعال کردن یوزر root در ابونتو ubuntu 16.04 پرینت

  • 14

با سلانم خدمت بازدید کنندگان عزیز
در این آموزش نحوه فعال سازی یوزر روت در سرورهای لینوکسی اوبونتو را نشان می دهیم
یوزر روت برای خیلی کارهای بخش سرور ابونتو لازم هست

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

Enable SSH Root Login
Comment out and add the following line :

..
# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
..

Enable SSH Root Login

..
# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes
..

3. Finally, apply the changes by restart or reload sshd service :

# systemctl restart sshd

آیا این پاسخ به شما کمک کرد؟

« برگشت