Properties dialog Permissions tab should also allow acting as root.

When you currently open the Permissions tab under properties, it only allows you to edit permissions if you’re either the owner of the file/folder, or already acting as root (With admin:// for example), and doesn’t give you the option to elevate yourself in the tap.

It would probably be more user friendly and cool to just have a button in there to let you act as administrator, with no extra hassle of either closing and then reopening the whole tab with root access, or just reverting back to the terminal.

I already tried looking into it but this is way past my skill or knowledge, if someone does decide to take it on I’d appreciate sending the commit my way, I could probably learn a thing or two from it. The relevant code is in kio’s widgets/kpropertiesdialogbuiltin_p.cpp

It should definitely not. Making achieving administrator rights inconvenient, clunky or even impossible is by design. Making it easy is a massive security breach.

Editing a root owned file and trying to save it comes up with a simple prompt asking for the root password, as do any other actions with such files. I don’t see why permission editing should be excluded from this

Not happy with that either. There is a fine line between convenience and foolhardy.

Maybe hiding it away in Advanced Permissions could work a bit better, since it’s a bit out of the way for the regular user to just click into and type in the root password without thinking.

Come to think of that, would be nice if the root password popups did come with some extra warning, I can imagine a user who doesn’t think twice when they see the confirmation pop up after touching important configs.

1 Like