linux 下普通账号 su 命令提示 “no such file or directory” 的解决办法
2014-08-14 16:52
543 查看
出现此提示,可能是找不到运行需要的 shell,或者找不到 su命令,检查下面2个文件,尝试解决
1./etc/passwd 文件:
格式是否是unix,
root行是否缺失信息,
root最后一项的shell是否与执行的shell一致,一般为 /bin/bash
2.不能切换到root 的账号:
是否将su命令 alias 到另一个无效目录,在.bash_profile中是否存在 alias su = xxx的命令,如果找不到可以使用 \su - 原始命令
1./etc/passwd 文件:
格式是否是unix,
root行是否缺失信息,
root最后一项的shell是否与执行的shell一致,一般为 /bin/bash
2.不能切换到root 的账号:
是否将su命令 alias 到另一个无效目录,在.bash_profile中是否存在 alias su = xxx的命令,如果找不到可以使用 \su - 原始命令
相关文章推荐
- Linux运行脚本命令提示No such file or directory错误的解决办法
- Linux执行.sh文件时提示No such file or directory该怎么办(三种解决办法)
- Linux执行可执行文件提示No such file or directory的解决办法
- 解决“运行arm-linux-gcc命令,提示No such file or directory”的问题
- Linux中编译文件时提示:arm-elf-gcc: leds.o : No such file or directory 错误的解决办法
- linux 安装 VTK 提示libvtkNetCDF_cxx.so: cannot open shared object file: No such file or directory 的解决办法
- 64位linux系统无法运行Android sdk的adb和aapt,提示No such file or directory的解决办法
- 三种关于Linux执行.sh文件,提示No such file or directory错误的解决办法
- Linux运行shell脚本提示No such file or directory错误的解决办法
- 解决“运行arm-linux-gcc命令,提示No such file or directory”的问题
- Linux执行.sh文件时提示No such file or directory该怎么办(三种解决办法)
- 解决“运行arm-linux-gcc命令,提示No such file or directory”的问题
- Linux: find命令 ‘/proc/xxxx/task/xxxx/fd/y’: No such file or directory 解决办法
- Linux执行.sh文件,提示No such file or directory的问题的解决方法
- Laravel执行migrate命令提示:No such file or directory的解决方法
- UNIX/Linux下运行脚本文件出现bad interpreter:No such file or directory的原因和解决办法
- Linux下出现 error: mysql.h: No such file or directory 的解决办法
- 在Ubuntu 64位机器上执行arm-linux-gcc命令提示无法加载库,no such file or directory
- Laravel执行migrate命令提示:No such file or directory的解决方法
- 在Linux中提示No such file or directory解决方法