From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Manage template user environment

Manage template user environment

- [Instructor] Now let's look at managing the template user environment in Linux. When we created new user accounts, we mentioned one action that happens by default: All files from the /etc/skel directory are copied to the new user's /home directory. This can be very helpful when we want to create a template for the user's environment. Now, practical examples are easier to understand, so let's jump right in and explain as we go along. Imagine that we want to inform all new users about some default policy. Our old users already know about it, but every time we add a new user, it's likely that they don't know yet. What we can do is add a custom file to /etc/skel. Let's do that. So we'll edit this README file in /etc/skel. And we'll add this text: "Please don't run CPU-intensive processes between 8:00 AM and 10:00 PM." And then save our file. Now we'll add a new user to test this out. And let's explore our /home directory. The -a option makes ls list all files, including some that are…

Contents