You are not logged in.

#1 2021-12-06 20:08:50

desperado
Member
Registered: 2018-10-12
Posts: 59

Disable polkit auth when changing time and timezone

The system needs to allow all "wheel" group users to change the time and timezone without asking for a password. Is this possible?

Offline

#2 2021-12-06 20:23:13

hiciu
Member
Registered: 2010-08-11
Posts: 89

Re: Disable polkit auth when changing time and timezone

It probably is. Take a look at this: https://wiki.archlinux.org/title/Polkit … ic_actions, figure out which dbus action is responsible for managing date / timezone settings, and so on.

Offline

#3 2021-12-06 21:53:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,375

Re: Disable polkit auth when changing time and timezone

Sanity check:
- why do users need to change the time rather than using NTP?
- why do users need to change the *global* timezone (rather than exporting TZ to their shell as they see fit)?

Offline

#4 2021-12-07 06:05:41

desperado
Member
Registered: 2018-10-12
Posts: 59

Re: Disable polkit auth when changing time and timezone

- My bad, I meant timezone alone. I too use NTP with UTC hardware clock.
- I'm using a tray applet (lxqt) to change the time and that seems to change it for the whole system.
I'm changing the time to fool a certain german website into letting me in, among other things.

Offline

#5 2021-12-07 07:34:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,375

Re: Disable polkit auth when changing time and timezone

that seems to change it for the whole system.

Check

timedatectl

before and after applying the changes there.

I'm changing the time to fool a certain german website

Öffentlich-rechtlicher Sendeschluß im deutschen Internet… or porn tongue
Assuming the implementation is really so silly to to check the local time of the browser process, you need to export it to the browser what means first of all, you have to close all instances of the browser process and then

export TZ=Australia/Sydney; chromium

Notice that there's also https://chrome.google.com/webstore/sear … zone?hl=de

Offline

#6 2021-12-07 15:52:51

desperado
Member
Registered: 2018-10-12
Posts: 59

Re: Disable polkit auth when changing time and timezone

Can you tell me where polkit.log() writes its output to?

Offline

#7 2021-12-07 17:00:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,375

Re: Disable polkit auth when changing time and timezone

polkit writes to the system journal, but again: I don't think that juggling the system timezone is anywhere near necessary. Either changing the timezone ofthe browser will cut it or not at all, because whatever time-discrimination you're trying to circumvent isn't that naively implemented.

Offline

Board footer

Powered by FluxBB