www.delorie.com/gnu/docs/glibc/libc_615.html   search  
 
Buy the book!


The GNU C Library

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

29.12 The User Accounting Database

Most Unix-like operating systems keep track of logged in users by maintaining a user accounting database. This user accounting database stores for each terminal, who has logged on, at what time, the process ID of the user's login shell, etc., etc., but also stores information about the run level of the system, the time of the last system reboot, and possibly more.

The user accounting database typically lives in `/etc/utmp', `/var/adm/utmp' or `/var/run/utmp'. However, these files should never be accessed directly. For reading information from and writing information to the user accounting database, the functions described in this section should be used.

29.12.1 Manipulating the User Accounting Database  Scanning and modifying the user accounting database.
29.12.2 XPG User Accounting Database Functions  A standardized way for doing the same thing.
29.12.3 Logging In and Out  Functions from BSD that modify the user accounting database.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003