我们都知道su把普通用户切换到root用户。但是su只是切换用户,不SHELL切换环境,环境还是原来的环境。这有时会造成问题,比如图形编辑器的调用会出错!
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See 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.)
而su -不但切换用户而且切换用户的SHELL环境。
阅读(1530) | 评论(0) | 转发(0) |