/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.
Correct. alice is the only listed allowed user.
Incorrect. The existence of cron.allow means deny alone does not decide access.
Incorrect. The existence of cron.allow means deny alone does not decide access.
Incorrect. bob is not listed in cron.allow.
Incorrect. bob is not listed in cron.allow.
Incorrect. The allow file explicitly lists alice.
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
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.