On my Red Hat 5.3 Linux machine, NTP isn’t installed (can't install it for some reasons). However I can copy the binary /usr/sbin/ntpdate from another Linux machine to mine.

If I only get the file ntpdate and put it on my Linux machine under /tmp, is it possible to run

/tmp/ntpdate -u

in order to update my date? would be my Linux machine.


First it depends if the machine architecture and library versions are compatible with your ntpdate version. Then you have to check if /tmp is not mounted with noexec flag (however there is workaround for that) and finally you have to be a root to use ntpdate. But just try it. It is very hard to tell is it working or not based on this information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.