0
I have one script that is taking as an input IP address. My question is, can I specify in sudoers what input can be added to my script. Now I'm doing like that:
user ALL = !ALL, /bin/sh, /home/user/scripts/addIP.sh *
but this is allowing any input, can I specify this? I try this:
ussshnode ALL = !ALL, /bin/sh, /home/ussshnode/node_2fa_prod/scripts/addIP.sh [0-9]+.[0-9]+.[0-9]+.[0-9]+
but it doesn't work properly. Some suggestions?