Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2002 20:59:51 -0600
From:      "David W. Chapman Jr." <dwcjr@inethouston.net>
To:        "Terry Lambert" <tlambert2@mindspring.com>, "Juli Mallett" <jmallett@FreeBSD.org>
Cc:        <current@freebsd.org>
Subject:   Re: pw_user.c change for samba
Message-ID:  <00a601c2968a$38f48f40$fe01a8c0@dwcjr>
References:  <20021127192126.GA31706@leviathan.inethouston.net> <3DE52B70.44402B98@mindspring.com> <20021127203401.GA35573@leviathan.inethouston.net> <3DE5315A.FC6D59B@mindspring.com> <20021127142348.A60606@FreeBSD.org> <3DE585AA.39584D8E@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > The '$' is a pain.  None of the examples in the original post
> > > would have worked, because the '$' was not '\$', and the shell
> > > would have blown chunks over the "variable expansion".
> >
> > Your foundation is flawed, we allow $ in passwd just fine, and
> > the only problem here is whether a pw should let someone do
> > something we support which they might need to do.
>
> Apply the patch.
>
> Then try to add a user with a trailing "$" via adduser(1);  Note
> the failure.

I think NAKAJI Hiroyuki pointed out that adduser has nothing to do with
pw_user

and if you add usernameregexp = '^[a-z0-9_][a-z0-9_-]*[a-z0-9_$-]$' to
/etc/adduser.conf adduser will then allow $'s


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00a601c2968a$38f48f40$fe01a8c0>