/etc/cron.allow exists and contains only alice. /etc/cron.deny contains bob.
Determine who may use user crontabs.
Which statement is correct?
When cron.allow exists, only users listed there are normally permitted. It takes precedence over cron.deny.
Detailed explanation
Correct. alice is the only listed allowed user.
Incorrect. The existence of cron.allow means deny alone does not decide access.
Incorrect. bob is not listed in cron.allow.
Incorrect. The allow file explicitly lists alice.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' alice | grep -Fx aliceExpected result
aliceKey points
- allow limits to listed users
- allow takes precedence
- Root handling can be implementation-specific
Notes
- Environment: POSIX grep / 模擬一覧のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Cron
A scheduler for recurring jobs described by a time-field table.
at
A scheduler for one-time jobs queued for a specified time.
Anacron
A scheduler that can run periodic jobs after a system was unavailable.