Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Aug 2020 14:31:16 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Grzegorz Junka <list1@gjunka.com>, freebsd-questions@freebsd.org
Subject:   Re: Verify user password
Message-ID:  <0567033d-fa75-06b2-5629-448fdc507242@qeng-ho.org>
In-Reply-To: <af84bcef-ceff-4d7f-b012-3ef06e0ed5ec@gjunka.com>
References:  <af84bcef-ceff-4d7f-b012-3ef06e0ed5ec@gjunka.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15/08/2020 13:39, Grzegorz Junka wrote:
> How can I verify if a given password matches the password stored in
> master.passwd database for a user account that is set up with
> /nonexistent and /usr/sbin/nologin (so a user that can't normally login
> to the system but still can have a password stored in the database)?

nologin doesn't stop you logging in, it merely says the account isn't
available and boots you out afterwards, so you should be able to check
the password by trying to log in. I don't think the non-existent home
directory affects that,

-- 
The number of people predicting the demise of Moore's Law doubles
every 18 months.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0567033d-fa75-06b2-5629-448fdc507242>