all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21318: Only the first 8 characters of passwords are significant
@ 2015-08-22  5:20 Mark H Weaver
  2015-08-22 14:32 ` 宋文武
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mark H Weaver @ 2015-08-22  5:20 UTC (permalink / raw)
  To: 21318

yenda on #guix reported that when typing user passwords, only the first
8 characters need to be typed correctly to successfully log in.

DusXMT on #guix mentioned that [GNU/]Linux From Scratch instructs users
to change "#ENCRYPT_METHOD_DES" to "ENCRYPT_METHOD_SHA512" in
etc/login.defs:

  http://www.linuxfromscratch.org/lfs/view/stable/chapter06/shadow.html

I tried modifying both /etc/login.defs and etc/login.defs in our
'shadow' package recipe, and then tried updating my password entry with
'passwd' but it still only pays attention to the first 8 characters.

'strace' reveals that 'passwd' doesn't even look for any file named
"login.defs".

I'm not sure what's going on here, but it would be good to fix it soon.

     Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21318: Only the first 8 characters of passwords are significant
  2015-08-22  5:20 bug#21318: Only the first 8 characters of passwords are significant Mark H Weaver
@ 2015-08-22 14:32 ` 宋文武
  2015-08-25 12:39 ` bug#21318: Fixed 宋文武
  2015-08-25 12:43 ` 宋文武
  2 siblings, 0 replies; 4+ messages in thread
From: 宋文武 @ 2015-08-22 14:32 UTC (permalink / raw)
  To: Mark H Weaver, 21318

Mark H Weaver <mhw@netris.org> writes:

> yenda on #guix reported that when typing user passwords, only the first
> 8 characters need to be typed correctly to successfully log in.
>
> DusXMT on #guix mentioned that [GNU/]Linux From Scratch instructs users
> to change "#ENCRYPT_METHOD_DES" to "ENCRYPT_METHOD_SHA512" in
> etc/login.defs:
>
>   http://www.linuxfromscratch.org/lfs/view/stable/chapter06/shadow.html
>
> I tried modifying both /etc/login.defs and etc/login.defs in our
> 'shadow' package recipe, and then tried updating my password entry with
> 'passwd' but it still only pays attention to the first 8 characters.
>
> 'strace' reveals that 'passwd' doesn't even look for any file named
> "login.defs".
Yeah, when login using PAM (our case), login.defs is not used.
>
> I'm not sure what's going on here, but it would be good to fix it soon.
It turn out that add a 'sha512' to the argument of password pam entry do
the trick,  patch sent :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21318: Fixed
  2015-08-22  5:20 bug#21318: Only the first 8 characters of passwords are significant Mark H Weaver
  2015-08-22 14:32 ` 宋文武
@ 2015-08-25 12:39 ` 宋文武
  2015-08-25 12:43 ` 宋文武
  2 siblings, 0 replies; 4+ messages in thread
From: 宋文武 @ 2015-08-25 12:39 UTC (permalink / raw)
  To: 21318

Fixed in commit 9297065a2b2151636194b2c91e957a3ec0b33532.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21318: Fixed
  2015-08-22  5:20 bug#21318: Only the first 8 characters of passwords are significant Mark H Weaver
  2015-08-22 14:32 ` 宋文武
  2015-08-25 12:39 ` bug#21318: Fixed 宋文武
@ 2015-08-25 12:43 ` 宋文武
  2 siblings, 0 replies; 4+ messages in thread
From: 宋文武 @ 2015-08-25 12:43 UTC (permalink / raw)
  To: 21318-done

Fixed in commit 9297065a2b2151636194b2c91e957a3ec0b33532.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-25 12:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-22  5:20 bug#21318: Only the first 8 characters of passwords are significant Mark H Weaver
2015-08-22 14:32 ` 宋文武
2015-08-25 12:39 ` bug#21318: Fixed 宋文武
2015-08-25 12:43 ` 宋文武

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.