Re: enforcing "sudo -i"
Grant Taylor via sudo-users <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Organization | TNet Consulting |
| Message-ID | <[email protected]> |
On 8/8/19 10:54 AM, Michael W. Lucas wrote: > Is there a reasonable way to ensure that users always use "sudo -i"? I don't know if there is a way that sudo can do this itself per say. But I know a guy.... If I needed to do something like that, I'd be tempted to create a wrapper script named sudo that is earlier in the PATH and / or rename the sudo binary. The idea being that the wrapper script run the real sudo binary with the -i flag. Maybe I should ask said guy if there are any down sides to having -i be used for all sudo commands. -- Grant. . . . unix || die ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users