[SSSD] [PATCH] Make sss_userdel check for logged in users

Jakub Hrozek jhrozek at redhat.com
Wed Mar 31 11:12:31 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/24/2010 10:09 PM, Stephen Gallagher wrote:
> In other words:
> 
> On platforms that support get_uid_table():
> If the user is not logged in:
>   1) Delete the user.
> If the user is logged in:
>   1) Delete the user.
>   2) Print a message stating that the user (with uid N) was logged in
>      when you deleted it.
>   3) (Optional) Add a --kick flag to sss_userdel that disables the
>      user's password, then invokes 'killall -u <username>' and then
>      delete the user (to avoid race conditions where a user might
>      log back in immediately after being kicked)
> 
> 
> On platforms that do not support get_uid_table():
>  1) Delete the user.
>  2) (Optional) Add a --kick flag to sss_userdel that disables the
>      user's password, then invokes 'killall -u <username>' and then
>      delete the user (to avoid race conditions where a user might
>      log back in immediately after being kicked)

A patch that implements the above is attached.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkuzLh8ACgkQHsardTLnvCU8+ACdE8UXFF+DdLj8Qq4m5JrIGfoP
oI0An3r7DB9502DFhyBMH9W8eOiNJfJC
=UqAG
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-sss_userdel-check-for-logged-in-users.patch
Type: text/x-patch
Size: 6622 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100331/7910c781/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-sss_userdel-check-for-logged-in-users.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100331/7910c781/attachment.sig>


More information about the sssd-devel mailing list