![]() ![]() ![]() Returns the real username of the person invoking the command. Prints a + or - after each username to indicate whether the terminal is writable (a la write or talk ). who Command-Line Switchesĭisplays information about only the active terminal. NOTEĪ terminal type of console indicates a login directly at the Mac OS X machine. Each displays roughly the same information, gleaned from /var/run/utmp, but in a slightly different format.Įxecuting who, for example, provides an output of username, controlling terminal, date, and remote hostname: # who -Hu USER LINE WHEN IDLE FROM jray console Nov 22 10:47 01:26 jray ttyp1 Nov 22 11:21. To display information about the currently logged-in users, use the w or who commands. This section of the chapter will document the utilities that read these files and introduce the idea of an accounting log, which will track exactly what each user does at the command line. Although it's possible to limit the applications a user can run in Mac OS X (see Chapter 13, "Mail Server Security," for details), how to track their activity on the BSD subsystem isn't as obvious.Īs noted earlier, there are three binary logfiles that track users: logged-in users ( utmp), user login/logout history ( wtmp ), and each user's last login ( lastlog ). If your Mac OS X computer is shared among multiple users, keeping track of their activity should be a reasonably important priority.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |