输入exit
或者 ctrl+d
建立一个普通用户比如pinet。
# useradd pinet
# passwd pinet
更改用户 pinet 的密码 。
新的 密码:
重新输入新的 密码:
passwd:所有的身份验证令牌已经成功更新。
# usermod -G wheel pinet
编辑pinet自己家目录下的bash_profile文件。
$ vim .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
su - root # 加入一条授权命令
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH