• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

how do I create admin user in wheel group?

T

ThankYouAndMe

Guest
Using Putty to SSH to server, for security reasons, I want to disable 'root login' and then create a user in wheel group so that this user would first SSH to server and then su to root.

My Question:
What are the step-by-step procedures in creating a user in wheel group?
 
Hi,

Create an ftp login for a domain, this could also be on a fictive domainname, and give this user /bin/sh rights.

SSH-Login to server with this ftp username and passwd and su to root. Dont forget to disable root login in sshd_conf !

Better solution:

- create a rsa key and install on server (manual: search for openssh with google)
- change two lines in /etc/ssh/sshd_conf:
PermitRootLogin without-password
PasswordAuthentication no

now only users with installed rsa key can login and you don't have to su to root. Also root privilege sftp is possible with rsa key.


:)

Regards,
Bart
 
Back
Top