omargaliot
July 25th, 2017, 02:25 PM
Hi,
I want to modify the $PATH used in the sudo commands.
But I don't want to use the visudo, because I want to do it inside own shell script (*.sh),
which the system invoke automatically.
In that way, if I want to revert those settings, I just need to remove that script file and reboot/logoff&on.
I don't want to edit configuration files, so that in order to revert I'l need to save the "config.old" file and remove the modified config file.
Any One Knows?
I want to modify the $PATH used in the sudo commands.
But I don't want to use the visudo, because I want to do it inside own shell script (*.sh),
which the system invoke automatically.
In that way, if I want to revert those settings, I just need to remove that script file and reboot/logoff&on.
I don't want to edit configuration files, so that in order to revert I'l need to save the "config.old" file and remove the modified config file.
Any One Knows?