Centos中不从skel目录里向其中复制任何文件错误的解决方法
[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用戶可以正常登陸啦!
本文轉自 IT阿飛 51CTO博客,原文鏈接:http://blog.51cto.com/itafei/1735514
總結
以上是生活随笔為你收集整理的Centos中不从skel目录里向其中复制任何文件错误的解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 突然梦到一个人是什么情况
- 下一篇: Centos 安装 禅道