$ 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解决方案
最新推荐文章于 2019-08-13 00:03:33 发布