0
When I try to open a file named tester.php
from gedit by logging in as root, I see this :
[root@Feddy htdocs]# gedit tester.php
(gedit:4310): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
** (gedit:4310): WARNING **: Could not connect to session bus
What is this message and why do I get this ?
NOTE: I am able to open the file by the same command
gedit tester.php
when I act as a regular user. (i.e not root)
The same message..Here is a shot of what I did
– Suhail Gupta – 2013-01-09T10:34:43.567instead of
su
dosu -
– WeloSefer – 2013-01-09T15:58:18.707yeah it worked ! Thank you. Can you please tell me the difference between
su
andsu -
– Suhail Gupta – 2013-01-26T07:20:47.763also is there any time duration till I will be able to open a file directly from terminal as root ? – Suhail Gupta – 2013-01-26T07:23:09.477
The use of the hyphen "-" forces the new shell connection to run with adjustment of variables environment and all the default settings according to user preferences. – WeloSefer – 2013-01-26T21:01:22.540
as long as you don't disable the access by invoking
xhost -
from normal user prompt and don't restart, it should still work – WeloSefer – 2013-01-26T21:02:47.563