Hello,
I have a user named lfc added in /etc/sudoers file as follows -
Code:
Defaults requiretty
Defaults:lfc !requiretty
lfc ALL=(ALL) NOPASSWD: ALL
The lfc user was able to execute commands via sudo without being prompted for a password. Then I added a sudoerswheel file at /etc/sudoers.d/sudoerswheel, content as follows -
Code:
Defaults:admin requiretty, timestamp_timeout=0
%wheel ALL=(ALL) ALL
I added this so that the admin user should be prompted for a password everytime the user executes a command via sudo.
The problem I'm observing is that now user lfc is also prompted for a password, which I don't want.
Any idea why this is happening? I cannot delete the sudoerswheel file as that was a recommendation from the security team.
If I add the settings for user lfc again in sudoerswheel file, then things return back to normal, but do I need to make the duplicate entry?
OS - CentOS 6.9 (Final)
Thanks
Bhushan Pathak