CentOS enable sudo method


1. Add sudo user

Execute the visudo command and find:

    root    ALL=(ALL) ALL

Add the following:

    centos ALL=(ALL) ALL
2. Disable root login

Edit / etc / SSH / sshd_ config

    PermitRootLogin yes

Change to

    PermitRootLogin no

3. Restart sshd:

    service sshd reload

Recommended Today


Supervisor [note] Supervisor – H view supervisor command help Supervisorctl – H view supervisorctl command help Supervisorctl help view the action command of supervisorctl Supervisorctl help any action to view the use of this action 1. Introduction Supervisor is a process control system. Generally speaking, it can monitor your process. If the process exits abnormally, […]