nerdexam
CompTIA

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.

System Management

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)
  • A
    89% (17)
  • C
    5% (1)
  • D
    5% (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.

A/etc/ske1Correct

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.

B/etc/sysconfig

`/etc/sysconfig` contains configuration files for various system services and network settings, not templates for user home directories.

C/etc/ssh

`/etc/ssh` contains configuration files for the SSH daemon and client, unrelated to new user home directory templates.

D/etc/rc.local

`/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

#Linux Filesystem Hierarchy#User Account Management#Configuration Files#System Administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice