Linux Timesetzone setting

Hi,

Getting this error to set timezone
[tony@stapp01 ~]$ timedatectl set-timezone Atlantic/Reykjavik
Failed to set time zone: The name org.freedesktop.PolicyKit1 was not provided by any .service files
[tony@stapp01 ~]$

Hi @Dushmanta-Kumar-Trip

timedatectl set-timezone requires root permissions. Try running as

sudo timedatectl set-timezone Atlantic/Reykjavik

The error message may be a bit misleading.

@Alistair_KodeKloud Thank you

i tried using sudo but requesting for password, please how do i get the password to use ?

Hi @ameenaibuki

Assuming you are doing the same KodeKloud engineer task that the original question was raised for, then the sudo password is the same password you used to ssh into the system.

On any Linux system, the sudo password is that of the user that is running sudo, and provided of course the System Admin has permitted you to use sudo. It should be telling you which user’s password it expects.

1 Like

Hi @ameenaibuki ,
All details are available here

Thanks Tej-Singh-Rana, this was very helpful.

Well appreciated