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
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
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 set from objective 107 and space the ones you get wrong.