Date: Sun, 16 Aug 2020 20:48:22 +0000 From: Grzegorz Junka <list1@gjunka.com> To: Arthur Chance <freebsd@qeng-ho.org>, freebsd-questions@freebsd.org Subject: Re: Verify user password Message-ID: <b2aa3fd8-6c4b-070c-2627-2b7503343000@gjunka.com> In-Reply-To: <d87d96fa-97d5-e7a2-6447-c2cf38ecf978@qeng-ho.org> References: <af84bcef-ceff-4d7f-b012-3ef06e0ed5ec@gjunka.com> <0567033d-fa75-06b2-5629-448fdc507242@qeng-ho.org> <091dca7e-28ab-eab0-7265-d0439a732d86@gjunka.com> <d87d96fa-97d5-e7a2-6447-c2cf38ecf978@qeng-ho.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16/08/2020 13:09, Arthur Chance wrote: > 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. OK, thank worked! Thank you very much Arthur
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2aa3fd8-6c4b-070c-2627-2b7503343000>