[sudo-users] requiring sudo -i
Todd C. Miller
Todd.Miller at courtesan.com
Sat Aug 17 15:11:38 MDT 2013
On Sat, 17 Aug 2013 11:28:44 -0400, "Michael W. Lucas" wrote:
> Is there a way in sudoers to require use of the -i flag for certain
> commands?
>
> I've had situations where commands needed to be run with a specific
> user's environment. It would be nice if I could compel initializing a
> login environment when running those commands.
There is not currently a way to do this. I can see how it would
be useful but I've been reluctant to make "sudo -i" too transparent
since it is hard (maybe impossible) to do securely.
- todd
More information about the sudo-users
mailing list