[sudo-users] (Hopefully) quick policy question

Jore community at thoughtmaybe.com
Tue Sep 26 08:59:34 MDT 2023


On 27/9/23 12:41 am, Mihai Moldovan wrote:
> * On 9/26/23 16:32, Jore wrote:
>> But then I also note sudo 1.9.9 doesn't support regex? In that case...
>> what might be some suggestions to do this sort of thing sensibly? ;)
> Using a wrapper script that takes user input verbatim, sanitizes it and passes
> it to the actual script, comes to mind.
>
> Mihai


Hi there,

Thanks for the fast reply.

Okay, to consider that approach, do you have any resources for what 
might be good start for that? As it stands, I don't really know how to 
approach calling a bash script inside a bash script as root safely.

And obviously keeping things as simple as possible for systems admin 
would be great.

Thanks,
Jore




More information about the sudo-users mailing list