I'm trying to make it so when I create a new user either by using useradd or adduser, an empty directory named "whatever" is automatically created under that user's home directory.
I've tried playing around with the /etc/default/useradd config file but no luck.
I'm not trying to change every new user's default home directory but rather just have an empty directory automatically be created the same time the new user is created.
Best Answer
/etc/skel
is the "skeleton" of a new user's home directory; anything located therein is replicated as the starting point for new users' homes.From, for instance, the manual page for
useradd
:Or from
adduser
's: