Add user to wheel group
June 6th, 2011 by vickyIf you are on cpanel (or any other centos server) and need the security feature that root cannot log in via ssh (I will cover this elsewhere) you can do it by adding new user by using these commands:
# adduser testuser
# passwd testuser
that will create the user “testuser” and prompts you to enter his password
With this you would not be able to su to root, therefore you need to add this user to wheel group by using command:
# usermod -f wheel testuser
Voila, now user “testuser” will be able to su – to root and you can disable direct root login in your ssh configuration.
Posted in General linux admin, Security | No Comments »