I want to automatically create a directory called ".virtualenvs" in each new user's home directory upon creation of that new user.
I am using the useradd command to create new users.
I want to automatically create a directory called ".virtualenvs" in each new user's home directory upon creation of that new user.
I am using the useradd command to create new users.
Create the directory
/etc/skel/.virtualenvs
. The/etc/skel
directory will be used as a skeleton for a new home directory.It's defined in
/etc/adduser.conf
: