#!/bin/bash

create_user() {
    username=$1
    password=$2

    # Create the user with the specified username
    sudo useradd -m -s /bin/bash $username

    # Set the user's password
    echo "$username:$password" | sudo chpasswd

    echo "User '$username' has been created with the password '$password'"
}

create_user mahdi '#mahdi@1368'
create_user faranak '#faranak@1368'
create_user baba '#baba@1336'
create_user maman '#maman@1344'
create_user mahbubeh '#mahbubeh@1363'
create_user elaheh '#elaheh@1377'
create_user amin '#amin@1365'
