修改用户标识符
-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
[[email protected]_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#
时间: 2024-10-14 01:01:30