Reply to topic

Performing actions as root

56

Votes
62
6
Boson
Registered Member
Posts
1
Karma
0
Hi!
I'm missing a function where i can easily perform an action with root privileges. E.g. I'm browsing through the filesystem with dolpin or konqueror and try to edit/delete/copy/... a file, where I need root privileges for. But since I'm logged in as user, I have to start a new application instance as root or use konsole and sudo.
I would like to see a function to switch quickly to something like a "root mode" (and back to "user mode").
This could be done with a toolbar button "root mode". When clicked, it asks for the root password and the next actions will be done as root. Another click on the toolbar button leaves the "root mode".

Last edited by bcooksley on Sat Mar 28, 2009 12:29 am, edited 1 time in total.
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: Performing actions as root

Wed Mar 25, 2009 10:45 am
This could be implemented through polkit-qt. A action authentication abstracted API is also being proposed for GSOC, which will provide a cross platform method for KDE to authenticate actions as another user, which would include Administrators. This would reduce code duplication across the 3 platforms ( Lin, Mac, Win )


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar Primoz
Moderator
Posts
859
Karma
1
OS

RE: Performing actions as root

Wed Mar 25, 2009 10:57 am
I don't know about you but if I right click on any file / folder in Dolphin I geta menu in which I have an option for root action.
I don't know if this is part of KDE4.2.1 or part of KDEmod or maybe it's policykit.
But I'm pretty sure that whatever it is most distros will implement it sooner or later.


Primoz, proud to be a member of KDE forums since 2008-Nov.
jMax
Registered Member
Posts
11
Karma
0

RE: Performing actions as root

Fri Mar 27, 2009 7:17 pm
Something like this already exists as service menu :
see http://www.kde-look.org/content/show.ph ... tent=48411

jMax
User avatar Primoz
Moderator
Posts
859
Karma
1
OS
Idea tagged with Dolphin/Konqueror. If you think that it could be applied to others as well please let us know.


Primoz, proud to be a member of KDE forums since 2008-Nov.
crossbones
Registered Member
Posts
4
Karma
0
For newbies if nothing else, Konquor should have a vary _obvious_ root mode function so that when enabled the Konquor window is no different then it's functionality while logged in as root proper. Also, while enabled the window should turn a different color- perhaps flash red- so the user dose not forget they are accessing files as superuser.
User avatar MirzaD
Registered Member
Posts
86
Karma
0
OS
Root Actions on kde look mentioned before is a great tool.
http://www.kde-look.org/content/show.ph ... tent=48411

Maybe it should be a part of KDE installation by default ?
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Root Actions will not be included with KDE by default because it is not cross platform, and there are better ways to control it.

As part of a GSOC project which is currently being integrated in KDELibs, an authorizations framework that can use backends has been created. It already has the appropriate backends for PolicyKit and Mac.

There are already plans to integrate this into KIO so applications would immediately request authorization when writing to protected files.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
RRH
Registered Member
Posts
137
Karma
0
OS

Performing actions as root

Sat Apr 10, 2010 4:28 pm
bcooksley: so it is possible to perform such action?
Image

I mean to grant root privielges to perform coping from e.g home directory to /opt one as shown in the above picture.
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS

Performing actions as root

Sat Apr 10, 2010 8:52 pm
This would be made possible ( and with minimum ability for privilege escalation ) if KIO had KAuth integration which allowed it to launch KIO slaves as root.

As KIO slaves communicate purely using sockets, I can't imagine it being overly difficult to implement.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
2handband
Registered Member
Posts
304
Karma
0
OS

Performing actions as root

Sun Apr 11, 2010 2:30 am
You can open Konqueror in super user mode, but the option is hidden by default. Right-click on your app launcher, select Menu Editor, and you'll find the Super User File Manager under System > More Applications. Drag it into the main system menu and uncheck the "hidden entry" box. And there you have it.


User avatar TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Performing actions as root

Sun Apr 25, 2010 4:31 pm
It's planned but hasn't been implemented yet.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
2handband
Registered Member
Posts
304
Karma
0
OS

Performing actions as root

Sun Apr 25, 2010 4:47 pm
It should be added here that using a root file manager is not the most secure activity on the planet. You're really better off in a terminal.


RRH
Registered Member
Posts
137
Karma
0
OS

Performing actions as root

Sun Sep 19, 2010 12:02 pm
It's KDE 4.5 now but I still can't see this feature. Is it hidden or whatever?
chetankhona
Registered Member
Posts
129
Karma
0
OS

Performing actions as root

Mon Sep 20, 2010 7:26 am
It has been implemented in PCMan File Manager (LXDE) quite well.

It has menu -

Tools -> Open Current Folder as Root.

I think this is very simple concept and can be implemented easily in Dolphin.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], blue_bullet, Don B. Cilly, farid, funkyskywalker, Google [Bot], hon, jhardin, richringer, rwayland, Sogou [Bot], thunder422, Yahoo [Bot]