1
I am trying to automate a time change on Ubuntu 10.04 with a bash script using the date command. The script works, but it requires sudo privileges, however, the user who will execute the script does not have sudo privileges. Obviously I do not want to include the sudo password in the script.
Is there file I can change the permissions of that would allow non sudo users to change the time?
You could make a specific sudo exception: https://unix.stackexchange.com/questions/44865 (of course, replace apache with tthe username). This will give the user sudo privileges, but only for that specific command, and won't require sharing the password.
– Wander Nauta – 2014-12-17T15:51:36.493