[sudo-users] enforcing "sudo -i"

David Henderson dhenderson at digital-pipe.com
Fri Aug 9 07:37:15 MDT 2019

Not sure if this will help or not, but why not setup an alias?

alias sudo='sudo -i'

That way there is nothing external to manage and whenever 'sudo' is
called, it will automatically execute with the desired parameters.


On 8/9/19, Shawn McMahon <syberghost at gmail.com> wrote:
>> Maybe I should ask said guy if there are any down sides to having -i be
>> used for all sudo commands.
> Lose the ability to have accounts with  /bin/false as the shell that can
> run commands using sudo, but never get a shell. sudo -i will just "exit 1"
> with those.
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> https://www.sudo.ws/mailman/listinfo/sudo-users

More information about the sudo-users mailing list