script for adding a samba-user

Glenn Dawson glenn at
Thu Jul 28 19:05:50 GMT 2005

At 11:25 AM 7/28/2005, albi at 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".

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.


>adduser -G data -s scponly $1
>smbpasswd $1
>freebsd-questions at mailing list
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list