nerdexam
CompTIACompTIA

XK0-005 · Question #1791

XK0-005 Question #1791: Real Exam Question with Answer & Explanation

The correct answer is A: /etc/skel. The /etc/skel directory contains default files and directories that are copied into a new user's home directory upon account creation.

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/skel
  • B/etc/sysconfig
  • C/etc/ssh
  • D/etc/rc.local

Explanation

The /etc/skel directory contains default files and directories that are copied into a new user's home directory upon account creation.

Common mistakes.

  • B. /etc/sysconfig is used for system-wide configuration files, not for user-specific default files.
  • C. /etc/ssh contains system-wide configuration files for SSH, not templates for new user home directories.
  • D. /etc/rc.local is a legacy script for commands executed at the end of the boot process, not for populating new user home directories.

Concept tested. Linux user management, default user files, /etc/skel

Reference. https://man7.org/linux/man-pages/man8/useradd.8.html

Topics

#User Management#Account Creation#/etc/skel#Configuration Files

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions