nerdexam
LPI

010-160 · Question #77

Which statements about the directory /etc/skel are correct? (Choose two.)

The correct answer is C. The files from the directory are copied to the home directory of a new user when the account is created. D. The directory contains a default set of configuration files used by the useradd command. The /etc/skel directory holds default configuration files that are copied into a new user's home directory at account creation time by the useradd command.

Security and File Permissions

Question

Which statements about the directory /etc/skel are correct? (Choose two.)

Options

  • AThe personal user settings of root are stored in this directory.
  • BBy running the command with the option ?!? or ?=!
  • CThe files from the directory are copied to the home directory of a new user when the account is created.
  • DThe directory contains a default set of configuration files used by the useradd command.
  • EThe directory contains the global settings for the Linux system.

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    91% (43)
  • E
    2% (1)

Why each option

The /etc/skel directory holds default configuration files that are copied into a new user's home directory at account creation time by the useradd command.

AThe personal user settings of root are stored in this directory.

Root's personal configuration files (e.g., .bashrc, .profile) are stored in /root, not in /etc/skel.

BBy running the command with the option ?!? or ?=!

This choice contains garbled, invalid text and does not describe any real Linux concept or command.

CThe files from the directory are copied to the home directory of a new user when the account is created.Correct

When useradd creates a new user account, it copies all files and directories from /etc/skel into the newly created home directory, giving the user a standard baseline environment.

DThe directory contains a default set of configuration files used by the useradd command.Correct

The /etc/skel directory serves as the skeleton template referenced by useradd; any files placed there become the default starting configuration for every new user's home directory.

EThe directory contains the global settings for the Linux system.

Global system settings are stored in files under /etc directly (e.g., /etc/profile, /etc/environment), not in /etc/skel.

Concept tested: Purpose and function of /etc/skel directory

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

Topics

#/etc/skel#useradd#home directory#user creation

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice