Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2020 14:09:01 +0100
From:      Arthur Chance <>
To:        Grzegorz Junka <>,
Subject:   Re: Verify user password
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 16/08/2020 12:03, Grzegorz Junka wrote:
> On 15/08/2020 13:31, Arthur Chance wrote:
>> 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,
> OK, how can I login with that user then? "su" that user returns "This
> account is currently not available". "login" that user says "Not a login
> shell.". The user is configured inside a jail and there is no sshd running.

Try using /usr/bin/login, not just "login" which is a shell builtin.

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

Want to link to this message? Use this URL: <>