How can I add LDAP users to local groups?

Updated -

When storing user information in an LDAP server, it is sometimes desirable assign them to groups defined locally on an Red Hat Enterprise Linux server.  To acheive this, the local group database should be edited with the gpasswd command.

# getent passwd | grep netuser
netuser:*:11815:11815:Network User:/home/remote/netuser:/bin/bash
# gpasswd -a netuser localad...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.