|Deletions are marked like this.||Additions are marked like this.|
|Line 2:||Line 2:|
Pam Wheel or how to su sithout a password
Well, you want to have a secure root password with many characters and specials symbols. Obviously, that will be painful to write it each time you su. You have two options :
- Use a password manager like Keepass
- Use pam with wheel option
That seems to be quite stupid to say but having the ability to do su without a password is equivalent to have root access from your accounts, so take care of having a strong password for your user account.
Granting the wheel option
Granting wheel access can be done simply by editing /etc/pam.d/su and adding a wheel group.
# Uncomment the following line : auth sufficient pam_wheel.so trust
That's all for the file
Creating the wheel group
Assigning the user to the group
usermod -G wheel user_name
Now you can su without password