Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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 ,
Thanks in advance
Make 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).
userName ALL = NOPASSWD: ALL