[PATCH] Don't set "date of last password change" /etc/shadow field (#985572)
Brian C. Lane
bcl at redhat.com
Fri Sep 6 18:39:21 UTC 2013
On Fri, Sep 06, 2013 at 03:47:03PM +0200, Vratislav Podzimek wrote:
> From: Hans de Goede <hdegoede at redhat.com>
>
>
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
> pyanaconda/users.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/pyanaconda/users.py b/pyanaconda/users.py
> index ba5427a..e831122 100644
> --- a/pyanaconda/users.py
> +++ b/pyanaconda/users.py
> @@ -335,6 +335,8 @@ class Users:
> else:
> password = cryptPassword(kwargs["password"], algo=kwargs.get("algo", None))
> self.admin.setpassUser(userEnt, password, True)
> + userEnt.set(libuser.SHADOWLASTCHANGE, "")
> + self.admin.modifyUser(userEnt)
> elif pw == "":
> # Setup the account with *NO* password
> self.admin.unlockUser(userEnt)
> @@ -410,6 +412,7 @@ class Users:
> if lock:
> self.admin.lockUser(user)
>
> + user.set(libuser.SHADOWLASTCHANGE, "")
> self.admin.modifyUser(user)
>
> def setRootPassword(self, password, isCrypted=False, isLocked=False, algo=None):
> --
> 1.7.11.7
Ack
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130906/6d6b56dc/attachment.sig>
More information about the anaconda-patches
mailing list