In this example we provide permission to use some administrative command to non-administrative user.
Here we can see “eric” users have no rights to use “ifup” command.
With “whereis” command get absolute path of command ( /sbin/ifup ).
Provide access using “visudo” command or to modify by “/etc/sudoers” file.
Now try to execute command. In the password put user password to confirm once.
Here we provide “setup” command to run by non-administrative user.
Here we can see for “setup” command we need root authentication.
Doing same thing. Search path and put this information in “visudo” command or “/ect/sudoers” file.
How to set sudo on Group.
Create a user with group “eric”
Set group eric in sudo for run given command.