root用户无法切换到cdh的hive账号上

在/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
posted @ 2017-09-12 19:00  -六月飞雪-  阅读(955)  评论(0编辑  收藏  举报