Hi,

My RHL machine is integrated with Active Directory.

By default my AD user primary group is "Domain Users" but I would like to change that to a local Linux group. Somehow usermod command is not allowing to make tle Local Linux group as primary group for ADuser.

# usermod -g localprimarygrp ad_service_account
usermod: ad_service_account not found in /etc/passwd

But "getent passwd" listing all my AD user list with proper UID,GID,HomeDir,defaultshell (considering the entries r present in /etc/passwd).

So how can I add my AD user to a local primary group without editing(adding) any entries in /etc/passwd.

Thanks in advance.