3 ms·
You could do something like unprivuser ALL=NOPASSWD:/usr/bin/bash /path/to/directory/with/files/* It'd be a mild annoyance to have to explicitly run them w
by Tiksi 10y ago
You could do something like
unprivuser ALL=NOPASSWD:/usr/bin/bash /path/to/directory/with/files/*
It'd be a mild annoyance to have to explicitly run them with bash:
sudo bash /path/to/directory/with/files/thingtorun
but you wouldn't have to mess with the config past that.
- Godel_unicode 10y agoPro-tip: if you're going to go this route, stick these lines in a file in sudoers.d as you're likely to end up with a lot of them, this will help make your config more readable.