Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. for i in `echo fabio flaviaarruda gabifran shoiti felipemeyer`;
  2.      do
  3.        PW=`htpasswd -bn $i $i|awk -F: '{print $NF}'|cut -c 1-8`;
  4.        echo $i $PW;
  5.        V=`htpasswd -bn $i $PW`;
  6.        useradd -G arquivos,deployers -M -p `awk -F: '{print $NF}' <<<$V` $i;
  7.        echo $PW|smbpasswd -a -s $i;
  8.      done