On Mon, 18 Jan 1999, Heinz Knutzen wrote:
> (S.u.S.E. Linux 5.3 (i386) - Kernel 2.0.35).
I created the shadow pwd patch on a very similar Linux...

> My system uses shadow passwords.
> By looking at the code in server_password.c I learned, that lshd uses
> the shadow password only when the password entry in /etc/passwd equals
> "x".
> On my system the password entry for my account in /etc/passwd is "":
> hk::501:100:Heinz Knutzen:/home/hk:/bin/bash
     ^ This is strange. All active user on my SuSE has an "x" in /etc/passwd.

> But I decided to change server_password.c such that
> the shadow password is used whenever HAVE_GETSPNAM is true,
> regardless of the value of the password entry in /etc/passwd.
Maybe it's not the best solution for systems, where /etc/passwd used only, but
getspnam exists (this is nonsense, but exists ;) As it was in a last-year
letter, the real solution should be that if the /etc/passwd does not contain a
pwd with valid _lenght_, then we check it with getspnam.

Greets,
Keresztg

+ Keresztfalvi Gabor
+ Student of Technical University of Budapest
+ mailto: [EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
+ http://www.piar.hu/~keresztg/   Pubkey: finger [EMAIL PROTECTED]

Reply via email to