1. #!/bin/bash
    2. user=$(cat /etc/passwd |grep "/bin/bash" |grep -v "root"| cut -d ":" -f 1)
    3. for i in $user
    4. do
    5. userdel -r $i
    6. done