Linux - In the /etc/sudoers file, how can I give a specific user privilege to execute a command but not it's subcommands?

Viewed 23

I am trying to allow a user called "larry" the ability to run the "more" command, as root, but I don't want the to be able to run sub-commands/shells with the command. For example, if the user is viewing a file in "more", I don't want him to be able to change the edit mode by pressing "v".

Here is what I have so far in (sudo visudo):

larry ALL=(root:ALL) /usr/bin/more""
larry ALL=(root:ALL) /usr/bin/more\
0 Answers
Related