Root permission to change date and time [closed]

1

I would like to know how I can get my script to change system date and time without asking to enter the root password?

    
asked by anonymous 22.11.2016 / 23:32

1 answer

1

You will have to edit the file /etc/sudoers by adding:

  

[user] ALL = NOPASSWD: /path/to/script.sh

    
22.11.2016 / 23:41