# Add user 

## DC: 

```
export USERNAME=wjhuang 
export PASSWORD=`tr -dc A-Za-z </dev/urandom | head -c 5 ; echo ''`@1218 
export UID1=`echo $USERNAME | cksum | head -c 5` 
echo $USERNAME $PASSWORD $UID1
echo samba-tool user create $USERNAME $PASSWORD --nis-domain=samdom --unix-home=/home/$USERNAME --uid-number=$UID1 --login-shell=/bin/bash --gid-number=10000 
```    

## TrueNAS: 

    mkdir /mnt/pool0/Home_Share_Dataset/SAMDOM/onlylian 


***** 

Here is an example of AppleScript:

    tell application "Foo"
        beep
    end tell