create user without creating user home directory
Hi,
i have rhel 5.2 and i want to create user using useradd command without creating user home directory and not throwing any warning/error about not creating any home directory.
i have tried
useradd -u "$NEW_UID" -g <gid> -d "/home/$1" -M "$1"
where $1 is user name and $NEW_UID is i am calculating.
it throws error as
useradd: cannot create directory /home/$1
which i dont want to come , how to prevent this?
|