From owner-freebsd-questions Fri Feb 22 11:59: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (adsl-210.54.19.51.quicksilver.net.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id AEDA037B404 for ; Fri, 22 Feb 2002 11:58:24 -0800 (PST) Received: (from jonc@localhost) by chen.org.nz (8.11.6/8.11.6) id g1MJwL756726; Sat, 23 Feb 2002 08:58:21 +1300 (NZDT) (envelope-from jonc) Date: Sat, 23 Feb 2002 08:58:21 +1300 From: Jonathan Chen To: Justin Boss , freebsd-questions@FreeBSD.ORG Subject: Re: pw and samba Message-ID: <20020223085821.C56258@grimoire.chen.org.nz> References: <20020222162835.95726.qmail@web13108.mail.yahoo.com> <20020223085548.B56258@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020223085548.B56258@grimoire.chen.org.nz>; from jonc@chen.org.nz on Sat, Feb 23, 2002 at 08:55:48AM +1300 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 On Sat, Feb 23, 2002 at 08:55:48AM +1300, Jonathan Chen wrote: > On Fri, Feb 22, 2002 at 08:28:35AM -0800, Justin Boss wrote: > > I use FreeBSD 4.4 with Samba. I'm trying to get the > > 'add user script' working so it will add workstation > > trust account. Workstation trust account end with a $ > > ( workstation$ ) but pw gives me a invalid character > > '$'. Currently my add user script looks like this 'pw > > useradd -n %m$ -g staff -s /sbin/nologin -c %m -d /' > > %m is the value of the name of the workstation that is > > passed by Samba. What I was thinking needs to be done > > is have pw except the $ as a valid character. Is there > > another way? > > The '$' is signicant to all shells. Use \$ instead. If that fails, you'll have to stick with vipw(8). -- Jonathan Chen ---------------------------------------------------------------------- "If everything's under control, you're going too slow" - Mario Andretti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message