You want every newly created account to start with a company-standard .bashrc already in its home directory. Where do you place that file?

LPIC-1 Exam 102-500, objective 107. Administrative tasks medium

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Not correct /etc/default/useradd

Wrong. That file holds useradd's own defaults, such as the default shell, the base home directory and the default skeleton directory. It contains settings, not files to copy into home directories.

Not correct /etc/login.defs

Wrong. login.defs holds site-wide policy such as UID_MIN, UID_MAX, PASS_MAX_DAYS and whether a home directory is created by default. It is not copied anywhere.

Correct /etc/skel

Correct. The contents of the skeleton directory are copied into a new user's home directory when useradd creates it. Placing .bashrc there gives every subsequently created account that file.

Not correct /etc/profile.d

Wrong. Scripts in /etc/profile.d are sourced by login shells for all users at login time. That is a real way to set site-wide shell behaviour, but the files stay in /etc and are never copied into home directories, so users cannot edit their own copy.

Why

useradd copies /etc/skel into the new home directory, but only when it actually creates one — that means `useradd -m`, or a distribution default such as CREATE_HOME yes in /etc/login.defs. Existing accounts are not retrofitted. The skeleton path itself can be overridden per invocation with `useradd -k /path` or globally via SKEL= in /etc/default/useradd.

Where this comes from

Cited
LPI exam objective 107.1
What it says
Understand the purpose of the skeleton directory used when creating accounts.

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 107 and space the ones you get wrong.

Practise LPIC-1 Exam 102-500

More questions on this objective

All questions on Administrative tasks

Practise LPIC-1 Exam 102-500