You are not logged in.

#1 2022-09-05 20:47:44

parbleu
Member
Registered: 2021-11-28
Posts: 19

[SOLVED] Change desktop settings requiring root privileges without GUI

Some settings of the plasma desktop require root rights (e. g. setting the user's avatar or the SDDM login theme). In general, it is recommended not to run GUIs as root. How do you set the settings correctly without sudo? Is it OK to enter the root password in the input windows from a normal user account?

Last edited by parbleu (2022-09-10 18:53:27)

Offline

#2 2022-09-05 21:24:35

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 91

Re: [SOLVED] Change desktop settings requiring root privileges without GUI

Hi!

Those GUI Tools normally get permission for single tasks only. If you start kate for example to edit /etc/fstab it will ask for the password of a  user with writing permission for this file (usually root). This works using PolicyKit and is safe to use.
This will not run the GUI as root, just the write command (in this case).

What should be avoided is running a GUI tool as root. But afaik Plasma doesn't support this anyway and returns an error message.

Offline

#3 2022-09-06 06:53:03

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

Re: [SOLVED] Change desktop settings requiring root privileges without GUI

require root rights (e. g. setting the user's avatar or the SDDM login theme)

No?
https://wiki.archlinux.org/title/SDDM#U … n_(avatar)

Offline

#4 2022-09-06 08:24:06

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,291

Re: [SOLVED] Change desktop settings requiring root privileges without GUI

seth wrote:

require root rights (e. g. setting the user's avatar or the SDDM login theme)

No?
https://wiki.archlinux.org/title/SDDM#U … n_(avatar)

The Plasma users KCM (incorrectly) does. It will be fixed in 5.26.

Last edited by arojas (2022-09-06 08:24:25)

Offline

#5 2022-09-10 18:51:15

parbleu
Member
Registered: 2021-11-28
Posts: 19

Re: [SOLVED] Change desktop settings requiring root privileges without GUI

koffeinfriedhof wrote:

This works using PolicyKit and is safe to use.

That is great to hear. Thanks!

Offline

Board footer

Powered by FluxBB