# su - oracle su: /usr/bin/ksh: No such file or directory 根据报错信息:显示无法找到文件 /usr/bin/ksh 果然没有该文件,但是发现存在文件/bin/ksh, 于是创建了一个软连接,可以规避问题,可以成功切换到用户下,但无法执行系统自带命令。 $. .bash_profile -ksh: .: .bash_profile: cannot open [No such file or directory] 为什么用户的shell一直是ksh而不是bash 因为 linux环境中默认的shell是bash而不是ksh。 所以 去修改用户默认shell为bash vi /etc/passwd 将 oracle:x:501:1157::/home/oracle:/usr/bin/ksh 替换为 oracle:x:501:1157::/home/oracle:/bin/bash
linux 用户异常shell-》ksh
原创
©著作权归作者所有:来自51CTO博客作者心神cgr的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
VM手动用镜像安装yum和ksh
VM手动用镜像安装yum和ksh
yum 手动安装 ksh -
linux版本的charles如何安装 linux安装ksh
一、ks脚本安装虚拟机 1、ks脚本:在安装虚拟机时,生成图形界面后需要回答系统问题进行语言、网络、密码等设置,ks脚本就是系统根据脚本内容自动完成设置并安装完成,与之前虚拟机安装脚 &nbs
linux版本的charles如何安装 linux 虚拟机 dhcp 网络 -
ksh
set A 数组名 数组体
数组名 数组 数据