Dowemo


[root@dbserver ~]# su - mysql


Last login: Thu Aug 31 17:20:03 CST 2017 on pts/1


su: warning: cannot change directory to/home/mysql: No such file or directory


-bash-4.2$ exit


登出









Solution method


[root@dbserver ~]# cd home


-bash: cd: home: No such file or directory


[root@dbserver ~]# cd/home


[root@dbserver home]# ls


oracle xiniu


[root@dbserver home]# mkdir/home/mysql


[root@dbserver home]# chmod 755/home/mysql


[root@dbserver home]# ls


mysql oracle xiniu


[root@dbserver home]# cp -a/etc/skel/./home/mysql/


[root@dbserver home]# su - mysql


Last login: Thu Aug 31 17:20:58 CST 2017 on pts/1


[mysql@dbserver ~]$ id


uid=987(mysql) gid=1003(mysql) 组=1003(mysql) 环境=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023


[mysql@dbserver ~]$ su - root


密码:


su: 鉴定故障


[mysql@dbserver ~]$ su - root


密码:


上一次登录:四 831 17:20:52 CST 2017196.160.1.31pts/1 上


最后一次失败的登录:四 831 17:26:05 CST 2017pts/1 上


最有一次成功登录后有 1 次失败的登录尝试。


[root@dbserver ~]# chown mysql:oinstall/home/mysql/-R


[root@dbserver ~]# 












Copyright © 2011 Dowemo All rights reserved.    Creative Commons   AboutUs