How to ensure that all identity changes for a privileged user account belonging to the wheel
group on a privileged user account are performed without having to provide a password without deleting the password for the root account?
Ubuntu – Change between user and root without password
password
Best Answer
It sounds like you want these users accounts to be able to sudo to root with out providing a password. If this is the case, this is actually quite easy.
You can create a file in /etc/sudoers.d to define the sudo behaviour and also to define sudo perimissions.
Say you have an account named a account defined named lindsay. You want Lindsay to have sudo access, without needing to type in her password when using sudo. To accomplish this you would do the following:
That's it! Our user Lindsay will now be able to sudo to root without re-authenticating by typing in her password. You can find more details about the syntax and some examples in the link below.
Be aware of the security implications of doing this since you are intentionally weakening the security of your Ubuntu installation.
Cheers!
Sudoers - Community Help Wiki