home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / comms_networking / users / Documents / Utilities < prev   
Encoding:
Text File  |  1998-01-01  |  1.1 KB  |  22 lines

  1. Utilties
  2. ----------------------------------------------------------------------------
  3.  
  4. There are a number of supplied example utilities with the users code:
  5. getty, adduser, lusers and rectime.
  6.  
  7.  `getty' implements a psuedo-clone of the Unix equivalent. It prints up
  8. `login:', waits for a username, prints `Password:', waits for a password,
  9. and then attempts to verify the pair. If they were valid, it sets some
  10. environment variables and exits. If not, it returns to the start. It protects
  11. against Alt-Break (etc.) by recursively registering an atexit() handler of
  12. main(). This is probably prohibited in ANSI C. It will also log the times and
  13. events for you by use of the user_log() function.
  14.  
  15.  `adduser' is a simple script to add users to the current password database.
  16. `lusers' will list all the users in the password database, and `rectime' will
  17. log a message in the users log database.
  18.  
  19.  The `Password' directory contains something I normally place in !Boot.Utils
  20. and run in !Boot.!Run; it supposedly prevents idle passers-by breaking into
  21. my machine. Look at it for an example.
  22.