$ su
密码:
# gedit /etc/apt/sources.list
(gedit:6303): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
$ su -
密码:
# gedit /etc/apt/sources.list
原因:su与su -命令的差别:
su 只能切换到管理员用户权限,不使用管理员的登陆脚本和搜索路径
su - 不但能切换到管理员权限而且使用管理员登陆脚本和搜索路径
Failed to connect to the session manager解决方案
猜你喜欢
转载自sundful.iteye.com/blog/1613842
今日推荐
周排行