[root@localhost www]# useradd -d /webserver/www/ ithovcom
useradd:警告:此主目录已经存在。
不从 skel 目录里向其中复制任何文件。
[root@localhost www]# ls -a
.&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; ..
发现没有将/etc/skel中的.bash_logout,.bash_profile,.bashrc文件复制过来,虚拟用户无法正常登陆,解决方法如下

[root@localhost www]# cd /etc/skel/
[root@localhost skel]# ls -a
.  ..  .bash_logout  .bash_profile  .bashrc  .gnome2  .mozilla
[root@localhost skel]# cp .bash_logout /webserver/www/
[root@localhost skel]# cp .bash_profile /webserver/www/
[root@localhost skel]# cp .bashrc /webserver/www/
[root@localhost skel]# cd /webserver/www/
[root@localhost www]# ls -a
.  ..  .bash_logout  .bash_profile  .bashrc
[root@localhost www]# su ithovcom
[ithovcom@localhost www]$

看看!ithovcom用户可以正常登陆啦!