id www 2>/dev/null if [ $? -eq 0 ]; then echo "User www already exit" else echo "User www created" useradd -M -s /bin/false -c "www user" www fi