ubuntu下用su切换到root用户时用 gedit会出现错误的解决办法
来源:互联网 发布:mediainfo for mac 编辑:程序博客网 时间:2024/06/10 00:22
在未切换到root用户时,用gedit 打开文档不会提示有错误出现,而当用su切换到root时则出现如下的错误:
(gedit:9204): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
GConf 错误:联系配置服务器失败;某些可能原因是需要为 ORBit 启用 TCP/IP 联网,或者由于系统崩溃,您的 NFS 锁定已失效。请访问 http://projects.gnome.org/gconf/ 了解详细信息。(详细信息 - 1: 获取到会话的连接失败: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.)
这些错误信息会重复十几遍,
但可以打开文档,之前我对这个错误就忍了,后来感觉老这样也不好,就上网搜了一下,最终找到一个还算很合理的解释。下面我就说一下:
解决出错问题的方法就是:切换到root是用 su -,而不用su.
su - 会重新初始化环境变量,而su不会。
没有初始化root用户的环境变量自然会出差了。
- ubuntu下用su切换到root用户时用 gedit会出现错误的解决办法
- ubuntu下使用su切换到root用户
- Ubuntu下切换到root,su命令失败,提示authentication failure的解决办法
- Linux Ubuntu下使用su命令切换root用户
- 只允许特定的组用户su切换到root
- 只允许特定的组用户su切换到root
- ubuntu desktop下切换到root用户
- Ubuntu下切换到root用户
- ubuntu用不了root用户:~$ su
- Ubuntu使用su切换到root时提示:Authentication failure
- WinSCP下su切换到root的技巧(禁止root远程ssh登录时)
- ubuntu用gedit打开 txt文件出现乱码的解决办法
- ubuntu下su: Authentication failure的解决办法(su和su - root的区别)
- 在fedora中切换到root用户,用命令gedit报错解决办法
- Linux切换用户su root 与 su - root 的区别
- ubuntu下root用户的切换
- ubuntu 切换到root用户
- ubuntu切换到root用户
- C++拷贝构造函数(深拷贝,浅拷贝)
- What are the practical differences between SVD and wavelet transforms in data analysis?
- .默认拷贝构造函数,浅拷贝,深拷贝
- HLA取出字符串中的每一个字符
- hdoj2047
- ubuntu下用su切换到root用户时用 gedit会出现错误的解决办法
- 【学习STM32F4】第二天
- C++拷贝构造函数详解
- 双向链表
- platform设备驱动全透析
- 论文反抄袭软件
- 如何使用ADO助手生成数据库代码
- Linux线程-pthread_join
- HDU 1010 Tempter of the Bone