script for adding a samba-user

albi at scii.nl albi at scii.nl
Thu Jul 28 19:19:29 GMT 2005


On Thu, 28 Jul 2005 12:02:08 -0700
Glenn Dawson <glenn at antimatter.net> 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!



More information about the freebsd-questions mailing list