i am using a script with awk which only works to add the first user from
my csv file.
when running with out the -s switch the output seems to be correct using
echo to test.
here is the script
#!/bin/bash
cat users.csv |awk 'BEGIN {FS=","}{print "echo smbpasswd -a -s
"$1"\n"$3"\n"$3"\n"}' |/bin/bash
this script successfuly adds the first user.
when using the -s switch.
when i tried this same script with out the -s switch the output is like this.
smbpasswd -a username
then bash complains
and smbpasswd wants a password
it does this for each user twice.
dunno
any ideas?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba