Hello,
The first command requires an NTP server. If not, an error message is reported.
You want to synchronize the time of one computer (let's say it's A) to the time of another computer (let's say it's B), right?
If yes, this error indicates that computer A does not have enough permissions to query and set the time of computer B.
This usually means that Computer B needs to turn on the appropriate sharing and permission Settings. Make sure file and printer sharing is enabled on B's computer.