Hans Hvelplund Odborg wrote:

>Me too. I just started wondering what the difference was
>  
>

"Use the source Luke!"

>From src/login.c in shadow-4.0.7:

                /*
                 * If the encrypted password begins with a "!", the account
                 * is locked and the user cannot login, even if they have
                 * been "pre-authenticated."
                 */
                if (pwent.pw_passwd[0] == '!'
                    || pwent.pw_passwd[0] == '*')
                        failed = 1;

So there you have it...if it starts with a '!' or a '*', the account
cannot be logged in no matter what.  That would mean that any other
character ('x', for example) the user could login, but they would have
to be authenticated by some means other than a password.

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to