LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2009, 06:32 PM   #1
karuna-bdc
LQ Newbie
 
Registered: Oct 2008
Location: Nilai, Malaysia
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
Can't launch gedit as root in Fedora 11


Hey all,

I've used Ubuntu for some time now, and I just recently set up a dual boot system on my laptop with fedora as well. However, If I try to run gedit as root to edit my /etc/fstab file I get this:


Code:
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
.. and gedit launches but with normal user permissions. How do I fix this?

In ubuntu, I simply typed gksu gedit and it asked for my password and it worked. Fedora doesn't have gksu installed.

Any help would be great!
 
Old 07-03-2009, 06:44 PM   #2
AsusDave
Member
 
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151

Rep: Reputation: 34
Does

su root gedit /etc/fstab

work?
 
Old 07-04-2009, 07:02 AM   #3
karuna-bdc
LQ Newbie
 
Registered: Oct 2008
Location: Nilai, Malaysia
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Owcch, I accidentally fried my fedora install in gparted... oops...
will get back when i reinstall and see if su root gedit /etc/fstab works
 
Old 07-04-2009, 07:22 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,354
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Running gedit suggest you try to run the GNOME desktop as root account user. If that is the case you should not (need to) do that.
 
Old 07-04-2009, 06:30 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
you might need to run gedit by using this first
" su - " to get the root $PATH
 
Old 07-05-2009, 10:05 AM   #6
karuna-bdc
LQ Newbie
 
Registered: Oct 2008
Location: Nilai, Malaysia
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
hey!
"su - " works! thanks!
but why's that? what does the dash mean> ? I checked the man page for su and it says that - means it runs as a login shell? how is that different?

thanks alot for your help!
 
Old 07-05-2009, 10:14 AM   #7
raj77_in
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Rep: Reputation: 15
Quote:
Originally Posted by karuna-bdc View Post
hey!
"su - " works! thanks!
but why's that? what does the dash mean> ? I checked the man page for su and it says that - means it runs as a login shell? how is that different?

thanks alot for your help!
that would mean that among other things the PATH variable will also be set.
 
Old 07-05-2009, 12:57 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
you might want to read ( in the terminal ) this
Code:
man su 
--- and this ---
info su
they are the help pages .
 
Old 07-05-2009, 10:15 PM   #9
karuna-bdc
LQ Newbie
 
Registered: Oct 2008
Location: Nilai, Malaysia
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Ok ok, cool thanks everyone!
 
Old 07-05-2009, 11:09 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Basically,

su

switches user, but retains your orig environment settings

su -

switches user and loads the new user's environment settings (as if you had logged in as him/her).
 
  


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
Fedora 9 gedit fails if launched as root from terminal itstootuff Linux - Software 5 10-28-2008 12:56 PM
cannot run gedit as root allasso Linux - Software 9 12-28-2007 06:32 PM
gui for nautilus,gedit....etc not working in root mode me4linux Linux - Software 3 08-09-2007 12:33 PM
can't launch programs as root Error1312 SUSE / openSUSE 3 02-10-2005 11:28 AM
can launch aMule only as root nboul Linux - Software 1 10-21-2004 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration