Friday, July 24, 2020

Password prompted with update in sudoers file


Password still prompted inspite of update in sudoers file ?



Check for any comment written there is space between # and the first word. 
If there is no space between # and the first word it is no longer a comment. 

By opening with gvim, I have identified the issue. 
Need to extra cautious even if you put a simple comment :)

I have a rule updated in "includedir /etc/sudoers.d" directory and it was improperly commented. 
With proper commenting(adding space) it is fixed. 

No comments:

Post a Comment