i was trying to implement vnc on a remote server via ssh.
suppose a normal non-root account is called "user1" and assume that
via sudo, i want to allow that user to run any command as user root
without specifying a password each time he logs in for running
So, in that file, i added added:
user1 ALL = NOPASSWD: ALL
U might as well tell the user the root password.
I want to restrict a user (or any number of users) to
only run certain
Cmnd_Alias VNCCMD = /usr/bin/a,/usr/bin/b,/usr/bin/whatever
user1 ALL = NOPASSWD: VNCCMD
Still it is better that NOPASSWD is not specified.
Any idea/input is welcome
It's all there in the sudo man page. Why don't you read it before
mailling to the list.
Soumen Dass [Registered Linux User # 272639 - Linux nova