Fedora 9 gedit fails if launched as root from terminal
hey everyone
i very recently shifted to linux : fedora . I am using 2.6.25-14.fc9.i686. The tweaking on linux requires to edit some system config file and that requires switching to root (while i am actually logged in as normal user). I do it by typing 'su -' command in terminal. But then i cannot open gedit to edit the files. it says No protocol specified cannot open display: Run 'gedit --help' to see a full list of available command line options. If i login as root and then try to open gedit through terminal - it works.. whats wrong... thanks for help |
Quote:
|
hey thanksss
now it opens BUTTTTT it gives following error (gedit:3515): GnomeUI-WARNING **: While connecting to session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed. whats that... thanks for help |
It might help to copy (as logged-in-user) ~/.Xauthority to /root
In slackware/kde I use "kdesu" to get display-enabled-root functionality. If you have the kde libs try it (I use it in fluxbox, e.g.). Or perhaps gnome has something similar. OTOH Centos (even the latest, 5.2) always gives a display enabled term with "su -" at the command line (while in D.E). I'm surprised Fedora is different. |
hey thanks all
TBOne: this needs me to log in as root first and then type export DISPLAY=:0.0 on the terminal and logout and then login as regular user. Coz otherwise it never works... eagleheart: there is no ~/.Xauthority file in Fedora 9. thanks anyways |
~ = your home directory.
I'm surprised you don't have .Xauthority in your home directory (e.g., /home/itstootuff/ ) |
All times are GMT -5. The time now is 11:10 PM. |