Hig*_*ife 4 linux user-accounts redhat-enterprise-linux
我正在尝试将我们的一些 LDAP 用户添加到我们的 RHEL 服务器上本地定义的组中,但是我收到一条错误消息,指出在 /etc/passwd 中找不到 LDAP 用户。
允许将 LDAP 用户添加到本地组的最佳方法是什么?
我的感觉是这必须手动完成。我可以编辑:/etc/group并将 LDAP 组添加到列表中。那会是理想的吗?
[server]# id apache
uid=409(apache) gid=409(apache) groups=409(apache) context=user_u:system_r:unconfined_t:s0
[server]# id john.doe
uid=11389(john.doe) gid=6097(ABC_Corporate_US) groups=6097(ABC_Corporate_US) context=user_u:system_r:unconfined_t:s0
[server]# /usr/sbin/usermod -a -G apache john.doe
usermod: john.doe not found in /etc/passwd
Run Code Online (Sandbox Code Playgroud)
操作系统:RHEL(Red Hat Enterprise Linux Server release 5.3 (Tikanga)) 注意:更新这台机器上的操作系统不是一个选项。
| 归档时间: |
|
| 查看次数: |
12035 次 |
| 最近记录: |