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.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Create the directory
/etc/skel directory will be used as a skeleton for a new home directory.
It's defined in
# The SKEL variable specifies the directory containing "skeletal" user # files; in other words, files such as a sample .profile that will be # copied to the new user's home directory when it is created. SKEL=/etc/skel