Enable few commands with sudo for no required password

modify the sudoers file under etc directory
command
=================
sudo visudo
add the following line at the end of the file like for user saiful
saiful ALL=NOPASSWD: /usr/sbin/mkdir,/usr/sbin/touch

Leave a Reply

Your email address will not be published. Required fields are marked *