Tuesday, September 19, 2017

linux - sudo to any user without a password

If sudo can be configured to no password such as:


bob ALL=NOPASSWD: ALL

Then how can you configure sudo to be able to sudo to any user without password ?


So that


sudo -u domainnameuser.com mkdir www

Works for the sudo user without prompting for a [sudo] password ?


Is it possible to allow this without explicitly enabling it for each user in /etc/sudoers.d and just allow switching to all users and using all commands ?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...