I had written a regular account name debian8 into sudoers file.
echo "debian8 ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
To reboot and install some package.
sudo dpkg -i Brackets*.deb
[sudo] password for debian8:
Selecting previously unselected package brackets.
(Reading database ... 85361 files and directories currently installed.)
How to execute the command sudo dpkg -i Brackets*.deb directly ,without asking to input password?
Why is no use to set config as below?
sudo visudo -f /etc/sudoers.d/myRules
debian8 ALL=NOPASSWD: ALL
I fix the problem with following method.
sudo visudo -f /etc/sudoers
debian8 ALL=NOPASSWD: ALL
Why is no use to edit in /etc/sudoers.d/myRules?