Re: Delete local user/group but not LDAP one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



hello fellow linux users,

thank you for your answers.

Gordon Messmer <gordon.messmer@xxxxxxxxx>
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 
>>
>> *
>> https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/user.py#L640-L643 
>>
>>
>> and puppet
>> *
>> https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/user/useradd.rb#L12 
>>
>>
>> are using it, when you specify "local=yes" or "forcelocal=true".
>
>
> I suppose someone should file bug reports.  luserdel probably could be used
> to confine actions to the local host, as long as ansible/puppet provided
> their own libuser.conf and set the LIBUSER_CONF to the path of that
> file...

I attached the /etc/libuser.conf. Is it safe to use luserdel/lgroupdel
with these settings (without affecting LDAP)?

modules = files shadow

-> The man page says "A list of module names to use when not creating
   user or group entries..."

How about if I disable networking so that the LDAP Server is not
reachable (pingable) before running luserdel/lgroupdel? Would that be
100% safe?

Many Thanks and Best Regards!
-- 
Felix Natter
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux