1 00:00:06,549 --> 00:00:09,349 All right, let's talk about defaults for new users. 2 00:00:10,169 --> 00:00:13,369 So user add D is what you can use from the command line. 3 00:00:14,369 --> 00:00:19,919 More commonly used is etc login.devs we already had to look at it, particularly at the value 4 00:00:19,919 --> 00:00:25,469 that you need to change to make sure that passwords are Valid shorter than 99,999 days. 5 00:00:28,920 --> 00:00:33,049 Then there is etc scale which is a directory and the contents of 6 00:00:33,049 --> 00:00:37,179 this directory is copied to user home directory when the user is created. 7 00:00:38,000 --> 00:00:44,049 You should know that Linux does not offer an easy solution to apply default settings to 8 00:00:44,049 --> 00:00:50,099 previously created users. Probably you need to apply them afterwards using the user mod command. 9 00:00:50,810 --> 00:00:55,370 And best thing to do is do it in a specific 10 00:00:55,370 --> 00:00:59,930 loop user mod or passwd to change the relevant parameters. 11 00:01:00,990 --> 00:01:04,189 Okay, I want to show you the contents of this etc skell. 12 00:01:05,170 --> 00:01:09,740 So LS al on etc scale is showing the skeleton directory and 13 00:01:09,740 --> 00:01:14,310 this is everything that is copied to the new user home directory. 14 00:01:15,150 --> 00:01:22,140 So let me use a sudo sh c and I 15 00:01:22,140 --> 00:01:29,129 don't even need sh c, just sudo cat just sudo 16 00:01:29,130 --> 00:01:36,120 touch etc scale my file with a typo. Who cares? 17 00:01:36,640 --> 00:01:43,082 Now I'm going to use user add Bob with sudo privileges. Of course, now I'm using 18 00:01:43,082 --> 00:01:49,524 sudo su Bob to open a shell as user bob. Notice that you can easily do 19 00:01:49,525 --> 00:01:55,967 that if you combine with sudo because then no password is asked for and it doesn't 20 00:01:55,967 --> 00:02:02,409 matter that user Bob doesn't have a password. And what do we see? 21 00:02:02,549 --> 00:02:06,500 We see that my file, including the typo, has been copied 22 00:02:06,500 --> 00:02:10,449 into the user skeleton directory. That's how the skeleton is working.