Se un utente non amministratore digita un comando sudo in Terminale, questo apparirà dopo aver inserito la sua password:
User is not in the sudoers file. This incident will be reported.
Dove viene segnalato questo?
Se un utente non amministratore digita un comando sudo in Terminale, questo apparirà dopo aver inserito la sua password:
User is not in the sudoers file. This incident will be reported.
Dove viene segnalato questo?
L'evento verrà registrato in /var/log/secure.log e una mail verrà inviata a root (che di default va a /dev/null che è Unix speak perché viene scartata).
In older versions of OS X (through 10.6 or maybe 10.7), the disallowed sudo attempt would be logged in
/var/log/secure.log; in more recent versions it's recorded in the ASL (Apple System Log) database, in/var/log/asl/*. You can read this with theConsole.apputility (selectALL MESSAGESin the sidebar, then if you can't find them use the search field in the upper right to search forsudo). You can also use the command-linesyslogcommand to query the database (syslog -k Facility authpriv -k Sender sudoshould do it). Note that with either Console.app orsyslog, the entries will only be visible if you are running as an admin or root.