should pw(8) accept spaces/tabs in passwords?
From: Alexey Neyman (alex.neyman_at_auriga.ru)
Date: 05/29/03
- Previous message: M. Warner Losh: "Re: pcic setup / wi0 timeout"
- Next in thread: Alexey Neyman: "Re: should pw(8) accept spaces/tabs in passwords?"
- Reply: Alexey Neyman: "Re: should pw(8) accept spaces/tabs in passwords?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: freebsd-hackers@FreeBSD.org Date: Thu, 29 May 2003 08:25:55 +0400
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@auriga.ru `------------------( Les Rois du Monde )-'
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: M. Warner Losh: "Re: pcic setup / wi0 timeout"
- Next in thread: Alexey Neyman: "Re: should pw(8) accept spaces/tabs in passwords?"
- Reply: Alexey Neyman: "Re: should pw(8) accept spaces/tabs in passwords?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- Re: textwrap.dedent replaces tabs?
... Stripping all leading spaces from text is as easy as calling lstripon ... Following
a call to dedent it shouldn't be hard to translate leading groups of so many spaces back to tabs.
... Dedent the originals. ... (comp.lang.python) - Re: Trim() isnt stipping tab characters off my data in vbscript
... The data file looks like this: ... The script code reads the input file,
... The code segment below then parses it into discrete array fields to be used later in the script
for mapping. ... If I delete the tabs the script works fine. ... (microsoft.public.scripting.vbscript) - Re: Tabs in label/title with pgnuplot (Windows)
... > When I have tabs in xlabels, titles, etc. in a gnuplot script, the ...
> tabs appear in the image as the two letters N and L, ... when I use pgnuplot.exe on
Windows to run the script. ... piping commands into gnuplot. ... (comp.graphics.apps.gnuplot) - Re: [SCRIPT] Remove "space damage" from patches
... [SCRIPT] Remove "space damage" from patches ... So as a mean to cut down
on these nasty white-spaces (and sometimes tabs) I wrote this ... (Linux-Kernel) - Trim() isnt stipping tab characters off my data in vbscript
... I have a data on our server that houses data for mapping specific folders to ...
The script code reads the input file, ... The issue I'm having is that the Trimcommand
is not stripping the tab ... If I delete the tabs (which makes the ... (microsoft.public.scripting.vbscript)