|
发表于 2006-5-2 19:57:11
|
显示全部楼层
quoted from man useradd-m, --create-home
The user’s home directory will be created if it does not exist. The
files contained in SKEL_DIR will be copied to the home directory if the
-k option is used, otherwise the files contained in /etc/skel will be
used instead. Any directories contained in SKEL_DIR or /etc/skel will
be created in the user’s home directory as well. The -k option is only
valid in conjunction with the -m option. The default is to not create
the directory and to not copy any files. This option may not function
correctly if the username has a / in it. 型- [0 N0.2001 huan ~ ]$ ls /etc/skel/.b*
- /etc/skel/.bash_logout /etc/skel/.bash_profile /etc/skel/.bashrc
- [0 N0.2002 huan ~ ]$
复制代码 |
|