ntp server settings

I want to setup and change the network time, how can I do it?

For Debian or Ubuntu, that would be this commands:

  1. install the ntp service: sudo apt-get install ntp
  2. enable it: systemctl enable ntpd

    as I see, root privilege is needed to enable:

Can anybody share the root password?


Hi there:

This is the root permissions are not opened, you can enter the command.

sudo passwd root

And then set the password to do it

Thank you very much.