LinuxQuestions.org
Visit Jeremy's Blog.
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 01-05-2011, 03:34 PM   #1
eliassal
Member
 
Registered: Jan 2008
Posts: 91

Rep: Reputation: 0
FC 14 gedit crash using su


Hi,i have setup fc14, logged as myuserfor the firsttime and wanted to use su to launch gedit
after entering my password,i issue te following command

Code:
gedit /etc/pam.d/gdm
I get the following error

Quote:
gedit:2258 : EggSMClient-WARNING **: Faied toconnect to the session manager: None of the authentication protocols specified are supported
Thanks for your help
 
Old 01-05-2011, 07:13 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
What exactly was the sequence of commands?
Code:
$ su -
# gedit /etc/pam.d/gdm
or
Code:
$ su -c 'gedit /etc/pam.d/gdm'
or ...
The more specific you are the better.
You could certainly use nano.
Code:
$ su
# nano /etc/pam.d/gdm
 
Old 01-05-2011, 08:49 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,019

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
there ARE SECURITY checks in gnome that REQUIRES the FULL root bash $PATH
The normal users account DO NOT HAVE THAT BY DEFAULT .
the root $PATH is very different than the user $PATH


with Gnome there is a check ( and a security hash pgp check ) that needs the full root $PATH


so use the " su -"
 
Old 01-06-2011, 10:58 AM   #4
eliassal
Member
 
Registered: Jan 2008
Posts: 91

Original Poster
Rep: Reputation: 0
did su

i did
Quote:
su
on the command line

then entered root password

then

Code:
gedit /etc/pam.d/gdm
I tried
Code:
su -c 'gedit /etc/pam.d/gdm'
I got the same error
 
Old 01-06-2011, 11:37 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Try "gksu" instead ...

The problem you're facing is that X11 (your current session) is run by
yourself, not by root, and that by (a very sane, I might add!) default
no one but the actually logged in user is allowed to display stuff.

Btw - that's NOT a crash; it's a security warning.

Cheers,
Tink
 
Old 01-06-2011, 12:17 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,019

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
also fedora OS seams to dislike the use of the "c" in the su command .The changes in fedora AND in Gnome over the last 2 years do not use the -c , but that command IS in a lot of very old'98 to just old`06 "how to's"
on THREE LINES
Code:
su - ( hit the enter button ) 
--- then type in the root password when asked ( hit the enter button ) 
gedit ( hit the enter button )
do not type " ( hit the enter button ) " into the terminal
after you type in the root password and hit enter the location that the terminal is open to WILL CHANGE and the > will become #
and depending on just how bash is set up it might also change color

Last edited by John VV; 01-06-2011 at 12:23 PM.
 
Old 01-06-2011, 04:33 PM   #7
eliassal
Member
 
Registered: Jan 2008
Posts: 91

Original Poster
Rep: Reputation: 0
Smile used vi

Thanks to all of you
I managed to modify the file using VI.
Still can not unserstand wht security comes into pictue when uaing gedit which is a simple text editor
 
Old 01-06-2011, 08:58 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,019

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
gedit is a GUI and using gui's as root IS a possible security hole

so there is a set of checks and balances in place .

running ANY gui as root opens up known holes , so use them as root as needed only

now vi and nano are not gui based -- text only in the terminal


so modify the user $PATH to be the same as root's $PATH ( /ect/bashrc -- or-- /etc/profile )

or use "su -" and NOT " su" the two ARE DIFFERENT

also you will hit an error & warning about not being able to read root's pgp hash if you try to launch "nautilus" using "su"
and only a warning with "su -"
 
  


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
gedit fakie_flip Linux - Software 1 08-17-2006 10:52 PM
Crash, Crash, Crash, Crash and You Guessed it Crash! little_penguin SUSE / openSUSE 8 07-04-2005 09:34 AM
kde crash, then other crash, now weird problems true_atlantis Linux - Laptop and Netbook 1 04-28-2004 12:01 AM
xmms crash xine crash mplayer crash paledread Linux - Software 9 03-09-2004 07:09 AM
Gedit JsCAMRY Linux - Software 10 11-06-2003 01:54 PM


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

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