Re: [CentOS] Delete local user/group but not LDAP one

2021-11-25 Thread Felix Natter
hello fellow linux users, thank you for your answers. Gordon Messmer writes: > On 11/25/21 21:24, Thomas Mueller wrote: >> at least it seems that save, that ansible >> * >> https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/user.py#L625 >> >> >> * >>

Re: [CentOS] Delete local user/group but not LDAP one

2021-11-25 Thread Gordon Messmer
On 11/25/21 21:24, Thomas Mueller wrote: at least it seems that save, that ansible * https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/user.py#L625 * https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/user.py#L640-L643 and puppet *

Re: [CentOS] Delete local user/group but not LDAP one

2021-11-25 Thread Thomas Mueller
On 11/26/21 00:13, Matthew Miller wrote: On Thu, Nov 25, 2021 at 06:36:36PM +0100, Thomas Mueller wrote: 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 check luserdel and lgroupdel . The prefix l is for

Re: [CentOS] Delete local user/group but not LDAP one

2021-11-25 Thread Matthew Miller
On Thu, Nov 25, 2021 at 06:36:36PM +0100, Thomas Mueller wrote: > >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 > > check luserdel and lgroupdel . The prefix l is for local. :-) Oh, except...

Re: [CentOS] Delete local user/group but not LDAP one

2021-11-25 Thread Thomas Mueller
Hi Felix 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 check luserdel and lgroupdel . The prefix l is for local. :-) - Thomas ___ CentOS mailing list

[CentOS] Delete local user/group but not LDAP one

2021-11-25 Thread Felix Natter
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