本文共 522 字,大约阅读时间需要 1 分钟。
修改用户标识符
-bash-4.1$ id
uid=501(www) gid=501(www) 组=501(www)
-bash-4.1$ su -
密码:
-bash-4.1# cp /etc/skel/.bash
.bash_logout .bash_profile .bashrc
-bash-4.1# cp /etc/skel/.bash* /home/www/
-bash-4.1# chown -R www:www /home/www
-bash-4.1# su - www
[www@opark_gc_php_113 ~]$
系统默认useradd文件
-bash-4.1# cat /etc/default/useradd
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
-bash-4.1#
本文转自027ryan 51CTO博客,原文链接:http://blog.51cto.com/ucode/1750917,如需转载请自行联系原作者