Linux用户登录过程
上一篇 /
下一篇 2013-03-13 10:18:50
/ 个人分类:linux
- login shell:取得bash时需要完整的登录流程
- 调用/etc/profile
- PATH:会依据UID决定PATH变量要不要含有sbin的系统指令目录
- MAIL:依据账号设定好使用者mailbox到/var/spool/mail/账号名
- USER:根据用户的账号设定此一变量内容
- HOSTNAME:依据主机的hostname指令决定此一变量内容
- HISTSIZE:历史命令记录笔数
- 调用/etc/inputrc
- 调用/etc/profile.d/*.sh
- 调用/etc/sysconfig/i18n
- 读取个人偏好配置文件(bash的login shell只会按照次序读取其中一个)
- ~/.bash_profile
- ~/.bash_login(该文件默认不存在)
- ~/.profile(该文件默认不存在)
- 调用/etc/man.config
- 调用~/.bash_history
- 调用~/.bash_logout(退出时执行)
- non-login shell:取得bash借口的方法不需要重复登录的举动inputrc
- 调用 ~/.bashrc
- 调用/etc/bashrc
- 调用/etc/profile.d/*.sh
- 调用/etc/man.config
- 调用~/.bash_history
- 调用~/.bash_logout(退出时执行)
收藏
举报
TAG: