<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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-09-01
  • 2022-01-21
  • 2022-12-23
  • 2021-10-31
相关资源
相似解决方案