From owner-freebsd-questions Fri Feb 22 10:54:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ulixes.esc.ac.at (ulixes.esc.ac.at [193.170.216.34]) by hub.freebsd.org (Postfix) with ESMTP id 40BB437B400 for ; Fri, 22 Feb 2002 10:54:34 -0800 (PST) Received: from ulixes.esc.ac.at (localhost.esc.ac.at [127.0.0.1]) by ulixes.esc.ac.at (8.12.2/8.12.2) with ESMTP id g1MIsVHr064375; Fri, 22 Feb 2002 19:54:31 +0100 (CET) (envelope-from flo@ulixes.esc.ac.at) Received: (from flo@localhost) by ulixes.esc.ac.at (8.12.2/8.12.2/Submit) id g1MIsV4l064374; Fri, 22 Feb 2002 19:54:31 +0100 (CET) (envelope-from flo) Date: Fri, 22 Feb 2002 19:54:31 +0100 From: Florian Nigsch To: Justin Boss , freebsd-questions@freebsd.org Subject: Re: pw and samba Message-ID: <20020222195431.B63804@nigsch.com> References: <20020222162835.95726.qmail@web13108.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020222162835.95726.qmail@web13108.mail.yahoo.com>; from jlboss@yahoo.com on Fri, Feb 22, 2002 at 08:28:35AM -0800 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 Hi, I once tried this myself, then abandoned the project... -) But to create the machine accounts just add the user without the $ sign just as usual and append the $ sign using vipw afterwards. worked just fine for me.. 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? > > thanks > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---end quoted text--- -- --- Florian Nigsch http://flo.nigsch.com/ PGP key: http://flo.nigsch.com/fnigsch.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message