Wind Network (ithov.com) original article: Today, using the Useradd command to add a virtual user, and specified to the existing file directory, there is a warning message: This home directory already exists. Do not copy any files from the Skel directory.
[Root@localhost www]# useradd-d/webserver/www/ithovcom
Useradd: Warning: This home directory already exists.
Do not copy any files from the Skel directory.
[Root@localhost www]# ls
. &http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
Found no copy of the. bash_logout,.bash_profile,.bashrc file in the Skel, the virtual user does not log in properly, the solution is as follows:
[Root@localhost www]# cd/etc/skel/
[Root@localhost skel]# ls
. .. 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
. .. . bash_logout. Bash_profile BASHRC
[Root@localhost www]# su ithovcom
[Ithovcom@localhost www]$
Look! Ithovcom users can log on normally!