From owner-freebsd-questions Tue Mar 5 21: 5:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id F21E637B402 for ; Tue, 5 Mar 2002 21:05:00 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 5EB0028B38; Wed, 6 Mar 2002 00:05:00 -0500 (EST) Date: Wed, 6 Mar 2002 00:05:00 -0500 (EST) From: Peter Leftwich X-X-Sender: To: Mahlon Cc: "Paul C. Boyle" , Andreas Fiedler , Subject: Re: $ character in user names In-Reply-To: <20020305183702.E19936@martini.nu> Message-ID: <20020305235230.H56511-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: > Received: from mail6.registeredsite.com (mail6.registeredsite.com > [64.224.9.22]) > by russian-caravan.cloud9.net (Postfix) with ESMTP id A824F28BE8 > for ; 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 ; 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 ; 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" > Cc: Andreas Fiedler , > 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 > X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.5-RELEASE-i386) > Sender: owner-freebsd-questions@FreeBSD.ORG > List-ID: > List-Archive: (Web Archive) > List-Help: (List Instructions) > List-Subscribe: > > List-Unsubscribe: > > 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