i edited /etc/sudoers using visudo command so as to grant user sudo privilege without password as following :
userName ALL=(ALL:ALL) NOPASSWD:ALL
but it didn't work for me ,
any suggestions Thanks in advance
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityMake sure that no rule below your mentioned rule are overriding it. From man sudoers
(1.7.2p2):
When multiple entries match for a user, they are applied in order.
Where there are multiple matches, the last match is used (which is not
necessarily the most specific match).
try
userName ALL = NOPASSWD: ALL
sudo -l
look like while logged in asuserName
?