Question 470 of 511
System SecurityeasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is /etc/cron.allow, which is the file used to configure which users and groups are allowed to use the cron daemon. This file operates as a whitelist: when it exists, only the users and groups explicitly listed within it can schedule cron jobs via crontab, and all others are denied access, regardless of any entries in /etc/cron.deny. On the LPIC-2 exam, this concept tests your understanding of cron’s access control hierarchy and the principle of explicit permission, often appearing as a scenario where you must choose the correct file to restrict users. A common trap is assuming /etc/cron.deny is the primary control, but remember that /etc/cron.allow takes precedence when both files exist, making it the definitive tool for restricting cron usage. For a quick memory tip, think “allow first” — if the allow file exists, it alone decides who gets in, just like a VIP list at an exclusive event.

LPIC-2 System Security Practice Question

This LPIC-2 practice question tests your understanding of system security. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which file is used to configure which users and groups are allowed to use the 'cron' daemon?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

/etc/cron.allow

The /etc/cron.allow file explicitly lists users and groups permitted to schedule cron jobs. If this file exists, only those entries can use crontab; all others are denied, regardless of /etc/cron.deny. This provides a whitelist-based access control mechanism for the cron daemon.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • /var/spool/cron/

    Why it's wrong here

    Directory containing user crontab files.

  • /etc/cron.d/

    Why it's wrong here

    Directory for system cron jobs.

  • /etc/crontab

    Why it's wrong here

    System crontab file, not for user access control.

  • /etc/cron.allow

    Why this is correct

    Lists users allowed to use cron.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse the access control files (/etc/cron.allow and /etc/cron.deny) with the directories or system crontab files that store or schedule jobs, such as /var/spool/cron/ or /etc/crontab.

Detailed technical explanation

How to think about this question

Under the hood, cron checks /etc/cron.allow first; if it exists, the user must be listed (one per line) to be allowed. If /etc/cron.allow does not exist, cron falls back to /etc/cron.deny, which blocks listed users. If neither file exists, only root can use crontab on most systems (e.g., Debian/Ubuntu allow all users by default, but this varies). A subtle behavior: group names can be prefixed with '@' in some implementations (e.g., @admin), though this is not POSIX-standard.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LPIC-2 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LPIC-2 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LPIC-2 question test?

System Security — This question tests System Security — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: /etc/cron.allow — The /etc/cron.allow file explicitly lists users and groups permitted to schedule cron jobs. If this file exists, only those entries can use crontab; all others are denied, regardless of /etc/cron.deny. This provides a whitelist-based access control mechanism for the cron daemon.

What should I do if I get this LPIC-2 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.