Bug 493768 - Can't set time using clock; this requires sudo but user is not asked to authenticate
Summary: Can't set time using clock; this requires sudo but user is not asked to authe...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (other bugs)
Version First Reported In: 6.1.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-09-28 06:20 UTC by Francisco H
Modified: 2024-09-30 20:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco H 2024-09-28 06:20:09 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Can't set time using clock; this requires sudo but user is not asked to authenticate

STEPS TO REPRODUCE
1. Use Fedora 40 Workstation. I downloaded the GNOME version and then installed KDE plasma, with no other KDE apps using sudo dnf install @kde-desktop-environment
2. In the system tray, click on the clock on the right of the system tray.
3. A window shows up with a clock. Under the clock, there's a box with the time; select the hours there and delete them with backspace then using the numpad type in the current hour. 
Then try to save changes which fails with an error. Changing the time in the command line only works if done using sudo.

OBSERVED RESULT
Can't change time using GUI, an error appears when trying to apply changes

EXPECTED RESULT
Can change time using GUI and user is required to authenticate before changes are applied. 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
This also happens in Kubuntu 24.04.
Comment 1 Francisco H 2024-09-28 06:27:47 UTC
It apparently used to work: https://userbase.kde.org/System_Settings/Date_%26_Time
Comment 2 Francisco H 2024-09-28 06:31:56 UTC
Sorry, when you click on the clock in the system tray a calendar shows up and then you have to click on the settings icon for the window with the clock to appear.
Comment 3 Francisco H 2024-09-28 06:34:58 UTC
When it happens in Kubuntu 24.04, it happens with the latest version of KDE Plasma 5 available in the Ubuntu repositories
Comment 4 Francisco H 2024-09-29 04:01:06 UTC
sorry i misremembered. you have to right click on the clock on the taskbar and then click on adjust date and time for the window to pop up. I changed the time zone to UTC+5 and now i can change the time without sudo. previously the time zone had been left unchanged from the install and it was set to some country i can't remember which one.
Comment 5 Nate Graham 2024-09-30 20:29:42 UTC
It sounds like you may not have installed enough packages. I use Fedora KDE too and can confirm that this works as expected out of the box on a normal installation of Fedora KDE. I would recommend consulting with the Fedora packagers/devs about it.

If it happens in Kubuntu too, perhaps both are suffering from the same missing package.

Either way, there's no indication that this is a Plasma bug.