should pw(8) accept spaces/tabs in passwords?

From: Alexey Neyman (alex.neyman_at_auriga.ru)
Date: 05/29/03

  • Next message: Alexey Neyman: "Re: should pw(8) accept spaces/tabs in passwords?"
    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"


  • Next message: Alexey Neyman: "Re: should pw(8) accept spaces/tabs in passwords?"

    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: OT: Umra posting statistics for May 2008
      ... rather than adding tabs (which can go all over the place if ... horror when I clicked on the "show formatting" button. ... language Jo's script is written in but something like C or Perl's ... always welcome :-) I'm just using Agent, ...
      (uk.media.radio.archers)
    • 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)
    • 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)