All right, let's talk about defaults for new users.
So user add D is what you can use from the command line.
More commonly used is etc login.devs we already had to look at it, particularly at the value
that you need to change to make sure that passwords are Valid shorter than 99,999 days.
Then there is etc scale which is a directory and the contents of
this directory is copied to user home directory when the user is created.
You should know that Linux does not offer an easy solution to apply default settings to
previously created users. Probably you need to apply them afterwards using the user mod command.
And best thing to do is do it in a specific
loop user mod or passwd to change the relevant parameters.
Okay, I want to show you the contents of this etc skell.
So LS al on etc scale is showing the skeleton directory and
this is everything that is copied to the new user home directory.
So let me use a sudo sh c and I
don't even need sh c, just sudo cat just sudo
touch etc scale my file with a typo. Who cares?
Now I'm going to use user add Bob with sudo privileges. Of course, now I'm using
sudo su Bob to open a shell as user bob. Notice that you can easily do
that if you combine with sudo because then no password is asked for and it doesn't
matter that user Bob doesn't have a password. And what do we see?
We see that my file, including the typo, has been copied
into the user skeleton directory. That's how the skeleton is working.