How to add user to wheel group for su

tony1234

Verified User
Joined
Jul 25, 2005
Messages
71
I am going to disable root login via SSH and have added a user for myself to be able to su to root. However, from googling I see that that user must be added to the wheel group. How should I add this user to the wheel group, considering I am using DirectAdmin? Is there a feature? Do I just edit the /etc/group file? I want to make sure I am doing this the preferred way considering I am using DirectAdmin. Thanks in advance, Tony.
 
You don't have to do this for any Red Hat distribution unless you've reconfigured su to only work for people in the wheel group.

To do it you simply add the username to the group name in the /etc/group file. You don't have to restart anything.

Look carefully at the group file to be sure you understand the format properly; you can completely break your system if you break the group file.

Also you might want to read "man group".

Jeff
 
Back
Top