LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-27-2004, 10:34 PM   #1
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
KDE users - Having root file manager while still logged in as normal user


I'm sure this has been thought of by someone already, but I haven't come across it anywhere......................a revelation I came up with to allow you to have root access when needed without having to logout as current user and login as root.

This involves the use of the app 'kdesu', which take the format of:

kdesu command [command args]

Using kdesu still requires you to login with the root passwd when the popup window appears, but is much quicker than logging out and logging in again to a different session, and is still secure since the root passwd is required.

Anyway, the idea I came up with is to add entries to the KDE menu for the file manager and Control Center as a superuser. These two should be adequate for most configuration purposes.

The file manager is for moving copying, editing, changing permissions, etc, all the files and folders as root using Konq as a file manager. The Control Center is for configuration which may require root access. I know some of the applets in Control Center have a button at the bottom that may let you login as root, but when you switch to another applet then come back, you will need to login as root again. (NOTE: If you make changes in the Appearance or Desktop applets, these changes will apply to the root's appearance and behavior, not the current user's session. You will still need to open up the Control Center as the normal user to change the user's looks and behavior in KDE.)

The procedure is simple. Right-click on the menu button (the big K) in the task bar and choose Menu Editor. In the popup window, highlight Home and then hit Ctrl-C (copy) and Ctrl-V (paste). A new "Home" will appears called "Home-2" which will have the identical configuration as 'Home". Now, in the Command: box of "Home-2", type kdesu followed by a space. It should look something like this:
Quote:
kdesu kfmclient openProfile filemanagement
Then you can rename the copy to your liking. I've renamed it as Home - Root. Also, I changed the icon to make it easier to identify at a glance. Click on the icon button to the right of the Name: box at the top, and in the drop-down menu at the upper right of the popup window choose "Filesystems". Now you can choose from the different icons for a new home folder icon.

Do the same thing for the Control Center (which should be in Settings). Although here I didn't bother to choose a different icon. I just renamed the copy as "Control Center - Root".

NOTE: Instead of using 'kdesu' in the command line box, you can accomplish the same thing by simply adding a check in the box at the bottom of the menu editor, where it says Run as a different user, then type in root in the Username box below as it appears.........................I like to use the command line option, just a personal preference.


*** SAFETY PRECAUTION***

I must add this footnote to this tip...

When you open up the file manager in superuser mode - make the necessary changes and then CLOSE THE FILE MANAGER IMMEDIATELY when you're done to avoid fubar'ing your system. Do the same for any other app you've configured for superuser mode............................If you leave it open and do other tasks, then come back much later, you might forget you're in superuser mode and make an accidental deletion, or something similar, that can have catastrophic consequences. (Something I might easily do )....................File permissions are in place for a very good reason..........You have been warned...

Hope you find this as useful as I have.
---thegeekster
 
Old 04-27-2004, 10:47 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,765

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
OooooooooHhhhhh! Sounds excitingly dangerous. Since I've found about 17 different ways to totally foobar my system, and about as many ways to recover or otherwise protect myself from myself, why not play the 18th hole?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
Normal user cannot start KDE - root can tagit Linux - Newbie 3 12-26-2003 08:12 PM
Normal user cannot start KDE - root can tagit Debian 1 12-26-2003 03:14 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM
Modem connection fast when logged in as root slow when normal user Fennek Linux - Networking 0 03-17-2003 10:59 AM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration