XK0-005 · Question #844
An application requires a configuration file be placed in each user's home directory when an account is created. In which of the following locations should the administrator place the configuration…
The correct answer is A. /etc/ske1. To ensure a configuration file is placed in each new user's home directory upon account creation, it should be located in the /etc/skel directory.
Question
An application requires a configuration file be placed in each user's home directory when an account is created. In which of the following locations should the administrator place the configuration file?
Options
- A/etc/ske1
- B/etc/sysconfig
- C/etc/ssh
- D/etc/rc.local
How the community answered
(19 responses)- A89% (17)
- C5% (1)
- D5% (1)
Why each option
To ensure a configuration file is placed in each new user's home directory upon account creation, it should be located in the `/etc/skel` directory.
The `/etc/skel` directory (short for 'skeleton') contains files and directories that are automatically copied to a new user's home directory when a new user account is created using utilities like `useradd`. This allows for consistent initial configurations across user accounts.
`/etc/sysconfig` contains configuration files for various system services and network settings, not templates for user home directories.
`/etc/ssh` contains configuration files for the SSH daemon and client, unrelated to new user home directory templates.
`/etc/rc.local` is a script that executes commands at the end of the boot process, not for populating new user home directories.
Concept tested: Linux user account creation templates
Source: https://man7.org/linux/man-pages/man8/useradd.8.html
Topics
Community Discussion
No community discussion yet for this question.