Here
abc is the username and ak.sh is the file which I wish to get all the permissions.
Have added the following line on the top of
sudoers.tmp which I opened like
sudo visudo:
Code:
abc ALL=NOPASSWD: /home/abc/ak.sh
ak.sh contains:
Code:
#!/bin/bash
sudo cat /dev/tty13
When I run the script file, it asks me for password.