[sudo-users] documentation clarification
Todd C. Miller
Todd.Miller at courtesan.com
Tue Sep 15 06:43:20 MDT 2015
On Mon, 14 Sep 2015 23:08:45 -0000, Terry Inzauro wrote:
> Recently, I discovered a behavior that I don't understand. When
> allowing a user to run a command as root (with with the -i switch), I
> noticed that roots shell must also be listed in the sudo command
That's correct, because the command is being run via root's
shell, not directly. The descrption of -i in the sudo manual
If a command is specified, it is passed to the shell for execution
via the shell's -c option. If no command is specified, an
interactive shell is executed.
> Is it possible to allow a user to run a command as root with roots
> environment, whithout adding the shell to the command definition?
More information about the sudo-users