From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 19:05:50 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 ADA6316A41F for ; Thu, 28 Jul 2005 19:05:50 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7920C43D46 for ; Thu, 28 Jul 2005 19:05:50 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j6SJ5nXh001447 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO); Thu, 28 Jul 2005 12:05:49 -0700 Message-Id: <6.1.0.6.2.20050728114812.1bbe0c70@cobalt.antimatter.net> X-Sender: lists@cobalt.antimatter.net X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Thu, 28 Jul 2005 12:02:08 -0700 To: "albi@scii.nl" , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <20050728202555.04233dd3.albi@scii.nl> References: <20050728202555.04233dd3.albi@scii.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: 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:05:50 -0000 At 11:25 AM 7/28/2005, albi@scii.nl wrote: >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 ? It's difficult to help since you didn't provide a description of the problem beyond "not working". Taking a guess, I'd say that your problem is related to your use of the -s option to adduser. That option specifies the shell for the user you are trying to add. Even if you have a shell called "scponly" you would need to include the full path to that shell. -Glenn >#!/bin/sh >adduser -G data -s scponly $1 >smbpasswd $1 > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"