This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Root mode

2

Votes
2
0
Tags: kio? kio? kio?
(comma "," separated)
User avatar
plaristote
Registered Member
Posts
114
Karma
0
OS

[KIO?] Root mode

Mon Apr 27, 2009 10:55 pm
I was just thinking : with Windows Vista, two of my pals has issues editing some files on which they have no right...
And we get really **** of trying to edit these files.

So I was thinking about one thing : of course it's easy to take root rights with a shell, but it would be nice if the end-user could open files in root mode whenever he wants to.

Maybe KIO could do that ? While trying to save a file you don't have rights on, a notification would appear and tell us we don't have the right to modify the file, and asking us if we want to become root to edit this file, or if we want to save it elsewhere, or to do nothing.

No ?
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

RE: [KIO?] Root mode

Mon Apr 27, 2009 11:19 pm
I think there are "open as root" service menus. Would that do what you want?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: [KIO?] Root mode

Mon Apr 27, 2009 11:21 pm
I don't think this is really related to KIO.

I'm not sure it's a good idea to ask for the root password as soon as you want to edit a file you don't have permission to write to. For new users, it could become something like UAC in Vista (you know, this dialog); an annoying dialog that you just click away without a second thought (but it is even more annoying in "Linux", because you have to type a password each time!). After all, there's a reason you (the user) can't edit the files.

If you know you have to open a file as root, you can do it from service menus such as this one.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS

RE: [KIO?] Root mode

Mon Apr 27, 2009 11:56 pm
If you need to edit some files which your user have no right to, to the point of it getting annoying, what you need to do is fix your permissions.


Get problems solved faster - get reply notifications through Jabber!
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: [KIO?] Root mode

Tue Apr 28, 2009 12:16 am
Alec wrote:If you need to edit some files which your user have no right to, to the point of it getting annoying, what you need to do is fix your permissions.


chown_ -R hans / ? ;-)

You need to write your password when you launch your package manager too, right? Maybe this isn't a bad idea, it might be me who's not used to think in that way (since I rarely encounter the same problem).


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS

RE: [KIO?] Root mode

Tue Apr 28, 2009 12:46 am
Hans wrote:
Alec wrote:If you need to edit some files which your user have no right to, to the point of it getting annoying, what you need to do is fix your permissions.


chown_ -R hans / ? ;-)

You need to write your password when you launch your package manager too, right? Maybe this isn't a bad idea, it might be me who's not used to think in that way (since I rarely encounter the same problem).


Heh, well, if you're constantly writing stuff all over your system, you might have a different problem ;-)

As for the package manager (if you are sure no one will come to your computer and uninstall your glibc!), you can can give yourself the privilege by editing the sudoers file. It would look something similar to this (you edit the file with the command "visudo"):
Code: Select all
%shutdown       laptop=(root) NOPASSWD: /sbin/reboot.sh
%shutdown       laptop=(root) NOPASSWD: /sbin/halt.sh

This allows me to run the script "sudo /sbin/reboot.sh" as root and it does not ask for the password as long as I'm in the group "shutdown."


Get problems solved faster - get reply notifications through Jabber!
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: [KIO?] Root mode

Tue Apr 28, 2009 1:21 am
Ah, I know about sudoers; was just reflecting over the whole "ask for root password when the user doesn't understand why", if it really is as bad as I said in my first post.

Conclusion: I don't really know, so I will stop guessing and let those who know do the talking.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]