操作系統:CentOS7
問題:
Last login: Thu Sep 6 08:05:34 2018 from 192.168.153.1
Could not chdir to home directory /home/sky9890: No such file or directory
-bash-4.2$
原因:home目錄下丟失了文件。
解決方式:
#cd /etc/skel/
[root@localhost skel]# cp .bash_logout /home/sky9890/
[root@localhost skel]# cp .bash_profile /home/sky9890/
[root@localhost skel]# cp .bashrc /home/sky9890/
[root@localhost skel]# exit
[sky9890@localhost ~]$