在/etc/passwd中看到hive账号是登录的终端是/bin/false,而正常的用户配置的都是/bin/bash,因此在root账号su到hive也是没有用的

hive:x:111:111:Hive:/var/lib/hive:/bin/false

在su时指定登录的终端为/bin/bash即可登录上去

su - hive -s /bin/bash

相关文章:

  • 2021-11-30
  • 2022-02-08
  • 2021-11-28
  • 2021-11-19
  • 2022-02-09
  • 2021-11-29
  • 2021-12-07
猜你喜欢
  • 2021-05-20
  • 2022-01-15
  • 2021-12-12
  • 2021-11-28
  • 2022-01-29
  • 2021-11-22
相关资源
相似解决方案