0

How to enable wheel group and add users

Hi, i have created two users and one user is added to wheel group.... but both users is now able to access root... So how to enable wheel group and restrict the access.???

Sudo Add a comment
lucas
asked Feb 06 2017

Answer

0

To enable wheel group, uncomment the following line in /etc/pam.d/su file.

# Uncomment the following line to require a user to be in the "wheel" group.
auth            required        pam_wheel.so use_uid

Once this is done, add the user to wheel group using useradd or usermod or gpasswd commands.....

Now the users which is added to wheel group alone can access root....!!!

Add a comment
jagannatharumugam
asked Feb 06 2017
edited Oct 05 2018
Post your Answer