absence of crypt(3) conflicts with useradd(8) man page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Binary package hint: passwd
useradd(8) says:
-p, --password PASSWORD
The encrypted password, as returned by crypt(3).
however, crypt(3) is unavailable:
$ sudo apt-get install crypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package crypt
and appears to have been replaced by mcrypt(1)
$crypt
Unix crypt(1) emulation program using mcrypt(1).
Use crypt -h for more help.
Enter the passphrase (maximum of 512 characters)
Please use a combination of upper and lower case letters and numbers.
Enter passphrase:
However, the manpage for mcrypt has no obvious description of a way to generate a hash to use with
useradd --passwd
$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
$ crypt -V;crypt -v;mcrypt -v
Unix crypt(1) emulation program using mcrypt(1).
Use crypt -h for more help.
'key': not enough arguments
Error in the arguments. Use the --help parameter for more info.
Unix crypt(1) emulation program using mcrypt(1).
Use crypt -h for more help.
'key': not enough arguments
Error in the arguments. Use the --help parameter for more info.
Mcrypt v.2.6.4 (x86_64-
Linked against libmcrypt v.2.5.7
Copyright (C) 1998-2002 Nikos Mavroyanopoulos (<email address hidden>)
$ apt-cache policy mcrypt
mcrypt:
Installed: 2.6.4-3.2ubuntu2
Candidate: 2.6.4-3.2ubuntu2
Version table:
*** 2.6.4-3.2ubuntu2 0
500 http://
100 /var/lib/
$ apt-cache policy passwd
passwd:
Installed: 1:4.0.18.2-1ubuntu2
Candidate: 1:4.0.18.2-1ubuntu2
Version table:
*** 1:4.0.18.2-1ubuntu2 0
500 http://
100 /var/lib/
tags: | added: manpage |
Changed in shadow (Ubuntu): | |
assignee: | nwonknu (777) → nobody |
importance: | Undecided → Low |
crypt(3) is provided by manpages-dev.
I don't think this note in useradd(8) is sufficient to add a dependency on manpages-dev.