Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2002 00:05:00 -0500 (EST)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Mahlon <mahlon-dated-1015814223.a59def@martini.nu>
Cc:        "Paul C. Boyle" <freebsdruns@yahoo.com>, Andreas Fiedler <mail@computerservice-fiedler.de>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: $ character in user names
Message-ID:  <20020305235230.H56511-100000@earl-grey.cloud9.net>
In-Reply-To: <20020305183702.E19936@martini.nu>

next in thread | previous in thread | raw e-mail | index | archive | help

I didn't think that was all necessary, as I was able on my FreeBSD 4.5 box
to simply run "vipw" then copy a line of /etc/master.passwd (or is it
passwd.master) :) then do finger -m username\$ and it apparently worked
fine.

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555

On Tue, 5 Mar 2002, Mahlon wrote:
> Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
> Received: from mail6.registeredsite.com (mail6.registeredsite.com
>     [64.224.9.22])
> 	by russian-caravan.cloud9.net (Postfix) with ESMTP id A824F28BE8
> 	for <pete@cloud9.net>; Tue,  5 Mar 2002 21:39:54 -0500 (EST)
> Received: from mail.video2video.com (mail.video2video.com [209.35.10.22])
> 	by mail6.registeredsite.com (8.12.2/8.12.2) with ESMTP id
>     g262ds9D024505
> 	for <pete@cloud9.net>; Tue, 5 Mar 2002 21:39:54 -0500
> Received: from mx2.freebsd.org [209.35.10.22] by mail.video2video.com
>   (SMTPD32-6.06) id A1798F60150; Tue, 05 Mar 2002 21:39:53 -0500
> Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18])
> 	by mx2.freebsd.org (Postfix) with ESMTP
> 	id 5A3E755445; Tue,  5 Mar 2002 18:39:42 -0800 (PST)
> 	(envelope-from owner-freebsd-questions@FreeBSD.ORG)
> Received: by hub.freebsd.org (Postfix, from userid 538)
> 	id E585237B8AC; Tue,  5 Mar 2002 18:39:20 -0800 (PST)
> Received: from localhost (localhost [127.0.0.1])
> 	by hub.freebsd.org (Postfix) with SMTP
> 	id C472C2E808B; Tue,  5 Mar 2002 18:39:13 -0800 (PST)
> Received: by hub.freebsd.org (bulk_mailer v1.12); Tue,
>      5 Mar 2002 18:39:10 -0800
> Delivered-To: freebsd-questions@freebsd.org
> Received: from laika.martini.nu (12-224-18-46.client.attbi.com
>     [12.224.18.46])
> 	by hub.freebsd.org (Postfix) with SMTP id 7E40637B7DF
> 	for <freebsd-questions@FreeBSD.ORG>; Tue,  5 Mar 2002 18:37:04 -0800 (PST)
> Received: (qmail 23377 invoked by uid 1001); 6 Mar 2002 02:37:03 -0000
> Date: Tue, 5 Mar 2002 18:37:02 -0800
> To: "Paul C. Boyle" <freebsdruns@yahoo.com>
> Cc: Andreas Fiedler <mail@computerservice-fiedler.de>,
> 	freebsd-questions@FreeBSD.ORG
> Subject: Re: $ character in user names
> Message-ID: <20020305183702.E19936@martini.nu>
> References: <3C83F6CC.FECF12B8@computerservice-fiedler.de>
>     <200203050311.WAA30316@alpha.vaxxine.com>
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> User-Agent: Mutt/1.2.5i
> In-Reply-To: <200203050311.WAA30316@alpha.vaxxine.com>; from
>     "freebsdruns@yahoo.com" on Mon, Mar 04, 2002 at 10:12:14PM
> X-Sysinfo: FreeBSD 4.5-RELEASE, up  2:04
> From: Mahlon <mahlon-dated-1015814223.a59def@martini.nu>
> X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.5-RELEASE-i386)
> Sender: owner-freebsd-questions@FreeBSD.ORG
> List-ID: <freebsd-questions.FreeBSD.ORG>
> List-Archive: <http://docs.freebsd.org/mail/>; (Web Archive)
> List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
> List-Subscribe:
>     <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
> List-Unsubscribe:
>     <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
> X-Loop: FreeBSD.ORG
> Precedence: bulk
>
> On Mon, Mar 04, 2002, Paul C. Boyle wrote:
> > On March 4, 2002 05:35 pm, you wrote:
> > > Hi all, I need to add a user with a name ending in $ for adding machines to a Samba smbpass file (domain setup).
> > > Adduser and pw both reject illegal characters like $. Is there a possibility to manually override that behaviour?
> > try puting a \ in front of the $ character
>
> Backquoting it won't help, the problem is that pw doesn't allow the '$' character for usernames at all.
> If this is for a samba PDC, and you want automatic joining of new machines to the domain, manually editing vipw won't help you either, Andrew.
> The solution is to patch pw to allow $, which fortunately is so trivial I'll just describe it instead of sending a diff.
> % cd /usr/src/usr.sbin/pw
> Edit line 1198 of pw_user.c.  Remove the only '$' character from the line.
> % make && make install
> Should work dandy after that.
>
> Mahlon E. Smith                          jabber id: mahlon@chat.martini.nu
> http://www.martini.nu/                 get pgp key:  mahlon-pgp@martini.nu
> ..........................................................................
>     Only in America... do they have drive up ATM machines with braille
>                                 lettering.


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020305235230.H56511-100000>