date: cannot set date: Operation not permitted [duplicate]

You can't set the time yourself in a shared-kernel, container-based VPS such as OpenVZ or Virtuozzo.

If the system time is wrong, contact the hosting provider. If the system time remains wrong, switch to another provider and consider using something other than OpenVZ.

Problems with the system time is, in fact, one of the many reasons I don't use OpenVZ based VPSes for anything anymore.


Is this a dedicated physical server or a VPS?

If it's a VPS, you may not have permissions to do this. Otherwise, running the date/ntpdate/hwclock commands should work as a root user.

If you are using a VPS, contact your provider to handle this for you.