Dolphin in Super User Mode, doesn't follow theme, dark/light

I have the theme breeze dark. And optned a folder in super user mode. This is what it looks like.

Any suggestions?

This topic gets discussed regularly.

User and superuser use different settings. So when you change a theme as user, it won’t affect the superuser.

To change your root user theme:

su
kcmshell6 kcm_colors

Then exit.

1 Like

The variant via kcmshell is the clean and secure variant.

Logging into a full graphical root session is often (unfortunately) recommended by unexperienced users. It is known since decades that you shouldn’t login into a graphical root session if you have at least some basic linux security knowledge.

This sounds like the straightforward answer. But It has been flagged by the community and is temporarily hidden. And I don’t know why. Is there some inherent risk to logging in with the root user in a graphical session and setting the theme that way?

I’ve been on Linux for years. And I’ve never even thought about logging in to a graphical session using route.

What’s the reasoning behind why logging in as root in graphical section would be a bad idea?

Because root should only be used for those things that can only be done by root. And running a GUI, which will create tons of files (configuration, logs, what all) and will do all sorts of things you would even never have thought of, does not fall into that category.

You may of course do what you want, after all it is your system (we assume). But advising bad practices in the forums should be commented on. There is already enough bad advice on the internet.

2 Likes

Most distributions don’t even allow logging in as “root” to a graphical session.
openSUSE is more tolerant (following the “your system, your choice” principle?)
Some minimal “single user” distributions even configure “root” as the default and only user allowed on the system, but those are border cases.
Now, if you are the only user on the system perhaps you can login as “root” and live happily but be aware that you can screw up the entire system at any given time (or your cat walking on your keyboard).
If there are other users on the system, each user when logged in has access to files and creates files according to his/her uid/gid, normally ‘username’/users, check e.g.:

bruno@LT-B:~> id -un && id -gn
bruno
users
bruno@LT-B:~>

But if “root” logs in a graphical session, tons of files (as @hcvv noted) are (unknowingly) created or modified with root/root permissions, check e.g.:

LT-B:~ # id -un && id -gn
root
root
LT-B:~ #

Sooner or later the graphical session becomes unusable for other users (files with group “root” not being even readable normally by users with group “users”) or strange malfunctions arise and we see odd requests for “help me fix this” here on the Forums (not talking about your cat being able to access every file in other users directories… :wink: )

1 Like

Cool, thanks for the detailed response.

It never occurred to me to log in as root in a graphical user session.

Mostly because it’s never come up as an option before. I mean if you look at any of the answers to any questions in any Linux form they all use sudi commands.

Hi, you most likely meant sudo not sudi . Just replying to hopefully not create more confusion. This was an informative post.
-Thanks

Hi, you most likely meant opened not optned. I am still curious which command you pass to open Dolphin in super user mode? Or maybe it’s not a good idea to have that information in the thread?
-Thanks

Well, on my KDE there is (and always was) from the main starter menu: System → File Manager - Super User Mode.

I never use it, but it is there and I guess most that feel need to use a file manager as root will use this.

This is excellent information.
-Thanks

Lol, typos thanks to reply on mobile and general lazyness.

There is a way to do it from the terminal too. IDK what that is, but it surely exists.

WOW, you type fast ok. :grinning:

1 Like

You can use kdesu dolphin from the terminal as well as from the “starter” with “Alt+F2” in KDE.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.