Create a su user disable root login and secure a server.

ARUN Post in SSH

groupadd su_user

useradd -g su_user su_user

passwd su_user

cp -ar /etc/group /etc/group.bak7

vi /etc/group
Search for wheel, then append “,su_user”

EG :     “root,su_user”

vi /etc/ssh/sshd_config

PermitRootLogin  no

Scroll to the bottom of file

AllowUsers   su_user

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.