日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > centos >内容正文

centos

Centos中不从skel目录里向其中复制任何文件错误的解决方法

發布時間:2023/11/29 centos 125 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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目录里向其中复制任何文件错误的解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。