LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-09-2009, 05:01 AM   #1
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 179

Rep: Reputation: 31
gentoo root no gnome access


Strange problem since changing to gentoo. My Gnome desktop is working fine and I am happy with it but if I try to run things as root such as nautilus, it is not working.

When I open a terminal, su then run nautilus, the nautilus browser opens as expected but only has user access. I can't access anything as root. No /root directory, no access to change ownership of root files etc.

If I change to ctrl/alt F1, login as root, startx -- :1, I get X up but no gnome. From here I can run nautilus and it has full root access, but there is no desktop.

I would prefer to run from a terminal and su for the odd time I need root access, but I just cant make it work!!

Any suggestions would be great.
 
Old 02-09-2009, 09:38 AM   #2
bert_V
LQ Newbie
 
Registered: Dec 2007
Location: Belgium
Distribution: xubuntu
Posts: 2

Rep: Reputation: 0
does gksudo work instead of su?
 
Old 02-10-2009, 02:38 AM   #3
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 179

Original Poster
Rep: Reputation: 31
It tries to but doesn't actually open the program.

Every time I run it, it behaves differently. Sometimes it asks for the password, then does nothing, other times, no password but still does nothing. Sometimes it wont accept my password.


I would like it to work with just su because thats the way I have always done it. And it worries me that I cant get a root desktop to work (not that I use it)!
 
Old 02-13-2009, 02:48 PM   #4
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 32
Quote:
Originally Posted by dannyk1 View Post
It tries to but doesn't actually open the program.

Every time I run it, it behaves differently. Sometimes it asks for the password, then does nothing, other times, no password but still does nothing. Sometimes it wont accept my password.


I would like it to work with just su because thats the way I have always done it. And it worries me that I cant get a root desktop to work (not that I use it)!
Glad you see the harm running a root desktop! Try running 'su -' without the quotes to su to root from a terminal. This will run the applications in root's environment so Nautilus then runs with root's priviledges. You should probably only run Nautilus with the '--no-desktop' switch as well so it doesn't try to draw the desktop with a Nautilus instance running as root - that might get confusing...
 
Old 02-13-2009, 06:18 PM   #5
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 179

Original Poster
Rep: Reputation: 31
Quote:
Try running 'su -' without the quotes to su to root from a terminal. This will run the applications in root's environment so Nautilus then runs with root's priviledges.
Thats exactly what I am doing but nautilus will only run with user access.
eg. I cant access /root, cant modify anything outside of a user directory.

The terminal does have root access, I can access /root and modify things, but just not from nautilus.

Does this mean it is a gnome issue?
 
Old 02-13-2009, 06:26 PM   #6
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
I actually use a nautilus script to open files or folders as root. Yes "su -" does work or even gksu, there's also a "privileged granting" option in system > preferences > Privilege granting.
I added the sunrise overlay in gentoo. Then emerged "gnome-extra/nautilus-actions" This adds a "open as administrator" option in the nautilus menu. Its very handy when opening a folder or file as root.
 
Old 02-13-2009, 07:34 PM   #7
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 32
Everything I do as root is at the CLI - just the way I've always done it, but there is more than one way to skin a cat, as they say!
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome and KDE fail to start under user. root access ok. fishstick Suse/Novell 4 04-02-2008 06:09 PM
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 3 03-03-2008 12:15 PM
Gentoo Root Issue. Cannot SU or logon to Root Battousai Linux - Distributions 8 11-14-2006 05:54 PM
Gaining root access in Gnome jonasan Linux - Software 5 01-31-2006 11:11 AM
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 06:37 PM


All times are GMT -5. The time now is 06:28 AM.

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