should pw(8) accept spaces/tabs in passwords?
Alexey Neyman
alex.neyman at auriga.ru
Wed May 28 21:25:48 PDT 2003
Hello,
I was just asked why the passwd(1) utility allows to set up a password
containing spaces and tabs, and the adduser(8) script does not: the password
is stripped of anything past a space or a tab. E.g., "my password" turns into
"my". It turned out that it's pw(8) utility that does such stripping; the
attached patch makes it behave consistently with passwd(1).
Regards,
Alexey.
P.S. Shouldn't passwd(1) be just a suid-wrapper for pw(8)? Are there any
security implications for this?
--
,----------------------------------------,
| A quoi ca sert d'etre sur la terre | Alexey V. Neyman
| Si c'est pour faire nos vies a genoux! | mailto:alex.neyman at auriga.ru
`------------------( Les Rois du Monde )-'
More information about the freebsd-hackers
mailing list