Delete Local User/group But Not LDAP One

Home » CentOS » Delete Local User/group But Not LDAP One
CentOS 9 Comments

Dear fellow linux users,

I have a computer with a local user X that shadows an LDAP user of the same name (and group).

I know I can use:
userdel X
groupdel X

but how do I make sure that the LDAP is not changed, and only the local user/group is deleted? This is very critical.

Many Thanks and Best Regards,

9 thoughts on - Delete Local User/group But Not LDAP One