#!/bin/bash
sudo useradd -p $(openssl passwd -1 2004) -d /var/mail/user2222 user1 | sudo useradd -p $(openssl passwd -1 2004) user2
sudo mkdir /home/user22
sudo usermod -d /home/user22 user2
sudo usermod -aG sudo user1
sudo chmod o+rx /home/user22
sudo chmod o+rw /var/mail/user2222