Choose the syslog facility for sensitive authentication and authorization records.
Which facility is appropriate?
authpriv is intended for authentication-related logs whose access should be restricted.
Detailed explanation
authprivCorrect. authpriv is for sensitive authentication-related messages.
Correct. authpriv is for sensitive authentication-related messages.
kernIncorrect. kern is for kernel messages.
Incorrect. kern is for kernel messages.
mailIncorrect. mail is for mail-system messages.
Incorrect. mail is for mail-system messages.
local0Incorrect. local0 is a locally assigned facility, not specifically authentication.
Incorrect. local0 is a locally assigned facility, not specifically authentication.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' authpriv kern mail local0Expected result
4つのfacility名Key points
- Facility classifies source
- authpriv is authentication
- Different from priority
Notes
- Environment: printf / 設定変更なし
- 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.