Symptoms:
If you switch to the root user under fedora11 and run gedit, an error is returned:
$ Su
# Gedit
Gconf error: failed to contact the configuration server. Some possible reasons are that you need to enable TCP/IP networking for orbit, or your NFS lock has failed due to system crash. Visit the http://projects.gnome.org/gconf/ for more information. (Details-1: failed to get the connection to the 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 .)
Solution:
When switching users, do not use su instead"Su-"
Additional:
Difference between Su and Su-
From: http://www.yuanma.org/data/2007/0210/article_2274.htm
The su user retains the original exported environment variables, while the Su-user reinitializes the environment variables just as if they were logged in as user users.
For example:
# Su mishuang
# Cd
# Pwd
/Export/home/root
# Su-mishuang
# Cd
# Pwd
/Export/home/mishuang