LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-26-2004, 06:14 AM   #1
d-katz
LQ Newbie
 
Registered: Feb 2004
Posts: 14

Rep: Reputation: 0
Gaining root access in KDE


Hi,

Is there any way i can get root priviliges while staying in KDE?

I often get a "not enough priviliges" message while trying to edit something
(e.g. an Icon of a mounted device).

Thanks.
 
Old 02-26-2004, 07:29 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You should be able to get root privileges. In a console, type su and then root's password when prompted. After that, all commands in that console will be run as root. If you need to run graphical programs, you probably need to allow root to access your screen, so before you su, you need to issue xhost localhost.
 
Old 02-26-2004, 08:20 AM   #3
d-katz
LQ Newbie
 
Registered: Feb 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the answer, but that did not solve my problem.

after entering 'xhost localhost' and then logging in as root i still get the
following message in KDE when i try to (for example) change the icon of a mounted
drive:

Could not save properties. You do not have sufficient access to write to /home/davidk/Desktop/win_c2/.directory.

Any ideas on how to handle this?

Thanks.
 
Old 02-26-2004, 09:12 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
A couple of questions:


Is /home/davidk/Desktop/win_c2/.directory a NTFS directory? What I mean, is have you mounted a Windows directory at this location?

What are the actual permission on /home/davidk/Desktop/win_c2/.directory? You should be able to find this with ls -l.

Finally, once you've become su, you might want to check your identity with whoami just to make sure you are root.
 
Old 02-26-2004, 09:14 AM   #5
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
In a graphical environment you can use gnomesu to have graphical applications run as root.

Robin
 
Old 02-26-2004, 09:26 AM   #6
d-katz
LQ Newbie
 
Registered: Feb 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks Gary and Robin...

The answers are:

1. yes, this is a location where i've mounted an NTFS drive
2. ls -l shows 'root' on all files
3. when i 'su' i see 'root' after typing 'whoami'

Robin, what is gnomesu and how do I use it?

Thanks a lot,
 
Old 02-26-2004, 09:38 AM   #7
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
You can't normally write to an NTFS drive AFAIK. Writing access to NTFS is still not usable.

Gnome SU is a graphical SU command for the Gnome desktop. You'll have to google for it, I don't recall exactly where I got it. There may be RPMs or whatever you need for your distribution.

Robin
 
Old 02-26-2004, 10:06 AM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
yes, this is a location where i've mounted an NTFS drive
Bitpicker has it right. You can't write to an NTFS drive. Well, that's not entirely true....you can't safely write to an NTFS drive. In the 2.6.x kernels, you can compile in the ability to write NTFS drives, but there are a ton of warnings that doing so may wipe out your NTFS partition.


So your problem isn't with root access, its with NTFS
 
Old 02-26-2004, 06:29 PM   #9
d-katz
LQ Newbie
 
Registered: Feb 2004
Posts: 14

Original Poster
Rep: Reputation: 0
I see...

but is there no way to create a link on my desktop (like a windows shortcut) and just change the icon of the link without having anything to do with the drive?

Thanks,
 
Old 02-27-2004, 05:46 AM   #10
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Normally you should be able to do that. The icon set can be managed with kcontrol, and you can also change the icon from the context menu (Properties). If you can't, maybe for some reason you do not have access to your own desktop folder. You'll have to check the permissions on that folder and its files, and reset them if necessary.

Robin
 
  


Reply



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
Gaining access to an inherited machine... please help elemental666 Linux - Security 8 10-21-2005 10:18 AM
Gaining access to Printerserver? gundestrup Linux - Hardware 8 08-07-2005 05:02 AM
Gaining access to Printerserver? gundestrup LinuxQuestions.org Member Intro 2 05-18-2004 11:54 AM
gaining access to my Windows C:/ drive spano Linux - Newbie 16 03-22-2004 11:21 PM
Gaining Write Access through Samba MaleMe Linux - Networking 2 06-28-2002 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration