Ubuntu gedit Failed to connect to the session manager

(gedit:6556): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

**
GLib-GIO:ERROR:/build/buildd/glib2.0-2.26.0/gio/gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)



原因:su与su -命令的差别:

su   只能切换到管理员用户权限,不使用管理员的登陆脚本和搜索路径
su - 不但能切换到管理员权限而且使用管理员登陆脚本和搜索路径

实例:

$pwd
/home/Yewanth (当前用户目录)
$su #pwd                  (再次查看路径)
/home/Yewanth (还是当前用户目录)

但是如果换成su -的话结果如下:
$pwd
/home/Yewanth (当前用户目录)
$su - #pwd                    (再次查看路径)
/root                   (切换到超级用户目录)

猜你喜欢

转载自yelinsen.iteye.com/blog/811373