知识点扫盲 发表于 2020-03-02 分类于 笔记 本文字数: 434 阅读时长 ≈ 2 分钟 linux用户登录流程 init 阶段, 读/etc/inittab -> /etc/rc.local getty 用于监听本地consloe, 打出username:, 获得用户输入之后调起/ets/login打出password: 读/etc/passwd /etc/shadow 检查用户密码 拉起shell 读/etc/passwd 获取用户目录等信息,读/etc/motd获取欢迎界面 读/etc/profile -> /etc/bashrc -> .profile 或 .login 读.bashrc, .bash_profile 阅读全文 »