Mik*_*ott 11 bash sudo 11.10 bashrc
在我的一台 Ubuntu 11.10 服务器上,当我sudo -i成为 root 用户时,root 的 .bashrc 没有被执行。在所有其他服务器上,据我所知,其相关配置是相同的,它正在正确执行。
这是我检查过的:
source .bashrc,之后该会话的一切正常。bash在 sudoed 到 root 后手动键入执行 bash,然后执行 .bashrc还有什么要检查的吗?
enz*_*tib 10
您应该查看文件的存在和内容/root/.profile。
init 文件~/.bashrc不是来自登录 shell:在 Ubuntu 上它来自~/.profile
此外,对于其他用户,该文件/root/.profile不会从/etc/skel/其他用户复制,而是/usr/share/base-files/dot.profile在安装包期间复制base-files。
| 归档时间: |
|
| 查看次数: |
21671 次 |
| 最近记录: |