#!/bin/sh
# addmachine
# add samba machine account to passwd and smbpasswd files
/usr/sbin/useradd -d /dev/null -c $1 -s /bin/false $1$
passwd -l $1$
smbpasswd -a -m $1
#!/bin/sh
# addmachine
# add samba machine account to passwd and smbpasswd files
/usr/sbin/useradd -d /dev/null -c $1 -s /bin/false $1$
passwd -l $1$
smbpasswd -a -m $1