`
abc20899
  • 浏览: 910954 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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                   (切换到超级用户目录)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics