From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 18:25:59 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 DC3C716A41F for ; Thu, 28 Jul 2005 18:25:59 +0000 (GMT) (envelope-from albi@scii.nl) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C00243D48 for ; Thu, 28 Jul 2005 18:25:59 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:9883 helo=mail.aseed.antenna.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1DyD4w-0001a5-Bf for freebsd-questions@freebsd.org; Thu, 28 Jul 2005 18:25:58 +0000 Received: from http.aseed.antenna.nl (unknown [192.168.0.50]) by mail.aseed.antenna.nl (Postfix) with ESMTP id 11A3715437E for ; Thu, 28 Jul 2005 20:30:59 +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 6A70D58C607 for ; Thu, 28 Jul 2005 20:26:02 +0200 (CEST) Date: Thu, 28 Jul 2005 20:25:55 +0200 From: "albi@scii.nl" To: freebsd-questions@freebsd.org Message-Id: <20050728202555.04233dd3.albi@scii.nl> 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 Subject: 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 18:26:00 -0000 hi, 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 ? #!/bin/sh adduser -G data -s scponly $1 smbpasswd $1