在su用户模式下使用nautilus打开当前文件夹失败
2013-05-31 00:42
246 查看
参考:http://blog.163.com/seven_7_one/blog/static/162606412201092204444260/
在su用户模式下使用nautilus打开当前文件夹失败
[root@localhost hello]# nautilus ./
(nautilus:4038): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
(nautilus:4038): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection
to session: 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.)
解决方法:
就是在管理员用户的 .bashrc 文件尾部添加:
export DBUS_SESSION_BUS_ADDRESS=""
例如,编辑 /root/.bashrc 文件,添加一行 export DBUS_SESSION_BUS_ADDRESS=“”
另外就是使用 su - root 代替su,sudo
其区别是su sudo 使用当前用户的环境变量,su - root会使用root用户的环境变量。
在su用户模式下使用nautilus打开当前文件夹失败
[root@localhost hello]# nautilus ./
(nautilus:4038): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
(nautilus:4038): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection
to session: 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.)
解决方法:
就是在管理员用户的 .bashrc 文件尾部添加:
export DBUS_SESSION_BUS_ADDRESS=""
例如,编辑 /root/.bashrc 文件,添加一行 export DBUS_SESSION_BUS_ADDRESS=“”
另外就是使用 su - root 代替su,sudo
其区别是su sudo 使用当前用户的环境变量,su - root会使用root用户的环境变量。
相关文章推荐
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- C#使用DirectorySecurity的SetOwner设置文件夹所有者只能设为当前用户
- eclipse 使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- linux中使用shell命令打开指定文件夹(Nautilus@GNOME)
- win8 解决文件夹无法访问,安装使用软件莫名报错的问题 【提升当前用户权限】
- Chrome使用小技巧-多用户登录、直接打开隐身模式窗口
- Windows使用CMD打开当前路径文件夹
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- Eclipse使用技巧-打开选中文件文件夹或者包的当前目录
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录
- sharepoint 2007 使用open with windows explorer的方式打开sharepoint 目录,然后批量复制文件,会导致被复制的文件信息被修改成当前用户和当前时间
- linux中使用shell命令打开指定文件夹(Nautilus@GNOME)
- Elicpse使用技巧-打开选中文件文件夹或者包的当前目录