linux用户在/etc/passwd中查不到导致添加用户组失败
1.背景
有个用户a想加入用户b的用户组,可是查找用户b时发现在/etc/passwd中没找到
2.解密
# getent查看系统的数据库中的相关记录,即使这些数据库不是在本地例如ldap
getent passwd
# 将dolphinscheduler所属用户组修改为bo,而非添加附属组bo( usermod -a -G bo dolphinscheduler )
sudo usermod -g bo dolphinscheduler
3. 引用
关于用户不在/etc/passwd中的问题
Linux系统用户添加到用户组
Linux 命令之 getent -- 查看记录https://blog.csdn.net/liaowenxiong/article/details/120533289