I would like to know how I can get my script to change system date and time without asking to enter the root password?
I would like to know how I can get my script to change system date and time without asking to enter the root password?
You will have to edit the file /etc/sudoers
by adding:
[user] ALL = NOPASSWD: /path/to/script.sh