Reputation: 11
I want to change the system time of our Linux server (Ubuntu) in command line, but I am not the root user and I am not in sudoers also. How can I make it?
Upvotes: 0
Views: 1522
Reputation: 835
This was a bug and has been resolved in latest version of Ubuntu. users could exploit sudo to change system time.
this is not possible by the command is sudo date --set "25 Sep 2013 15:00:00" for instance
Upvotes: 0
Reputation: 8028
Try changing the BIOS clock from the BIOS. Depending on your configuration this might work.
Upvotes: 0
Reputation: 18430
If you want to change it by whole hours, you can set the TZ environment variable and set the correct time zone. If the clock is generally wrong, then you will have to contact the admin.
Edit: Of course setting TZ will only affect the user for which it is set. System daemons etc will continue to use the configured time.
Upvotes: 2