From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 19:19:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D920316A420 for ; Thu, 28 Jul 2005 19:19:28 +0000 (GMT) (envelope-from albi@scii.nl) Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F3FC43D46 for ; Thu, 28 Jul 2005 19:19:28 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:9892 helo=mail.aseed.antenna.nl) by post-22.mail.nl.demon.net with esmtp (Exim 4.51) id 1DyDuh-000ABs-6E; Thu, 28 Jul 2005 19:19:27 +0000 Received: from http.aseed.antenna.nl (unknown [192.168.0.50]) by mail.aseed.antenna.nl (Postfix) with ESMTP id 424DC15437E; Thu, 28 Jul 2005 21:24:28 +0200 (CEST) Received: from localhost.localdomain (217-19-30-147.dsl.cambrium.nl [217.19.30.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by http.aseed.antenna.nl (Postfix) with ESMTP id E9AD958C606; Thu, 28 Jul 2005 21:19:31 +0200 (CEST) Date: Thu, 28 Jul 2005 21:19:24 +0200 From: "albi@scii.nl" To: Glenn Dawson Message-Id: <20050728211924.29cb2629.albi@scii.nl> In-Reply-To: <6.1.0.6.2.20050728114812.1bbe0c70@cobalt.antimatter.net> References: <20050728202555.04233dd3.albi@scii.nl> <6.1.0.6.2.20050728114812.1bbe0c70@cobalt.antimatter.net> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: script for adding a samba-user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2005 19:19:29 -0000 On Thu, 28 Jul 2005 12:02:08 -0700 Glenn Dawson wrote: > >been working on a script to add a samba-user, below an example which > >is not working, can someone provide the fix here to make it work > >properly ? > > It's difficult to help since you didn't provide a description of the > problem beyond "not working". i forgot the -a option for smbpasswd and the $1 for adduser was not needed, the modified script below seems to be working instead #!/bin/sh adduser -G data -s scponly smbpasswd -a $1 sorry for not being clear, and thanks for your input!