首页 > 其他 > 详细

解决su – 后显示-bash-4.1#

时间:2015-09-25 20:19:35      阅读:726      评论:0      收藏:0      [点我收藏+]

<1>现象

设置tfs的管理用户时。

su - admin时,出现

-bash-4.1#

<2>解决

chown  admin:admin /home/admin              #授予admin用户权限

把其他机器的.bashrc.bash_profile

[root@dongruan-tfs173 admin]# su - admin
-bash: sh_profile: command not found         #少copy了一些东西,出现了如下错误,可推断下一条也是admin用户环境变量的问题.按照这个思路排查即可.
-bash: shrc: command not found

[root@dongruan-tfs173 admin]# cat .bash_profile

sh_profile       #该是“#bash_profile”
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH

解决su – 后显示-bash-4.1#

原文:http://www.cnblogs.com/itcomputer/p/4839242.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!