home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sys5.r4:1414 comp.unix.questions:15977
- Newsgroups: comp.unix.sys5.r4,comp.unix.questions
- Path: sparky!uunet!ihz.compuserve.com!sam
- From: sam@csi.compuserve.com (Sam Neely)
- Subject: What's the correct way to write a wtmp entry on SVR4?
- Message-ID: <C1JqnG.2EL@csi.compuserve.com>
- Organization: CompuServe Incorporated
- Date: Thu, 28 Jan 1993 04:18:51 GMT
- Lines: 18
-
- Environment: SVR4 (4.0.4), Dell Issue 2.2
-
- I need to write an entry to /var/adm/wtmp and /var/adm/wtmpx to signify
- that a user has logged out. I have tried using the getut(3c) routines
- to do this, but I do not know how to tell the library to append the
- entry to the end of the file rather than searching for an entry to
- update.
-
- Could someone tell me the correct way to update wtmp{,x}? I'd like
- to use the getut(3c) routines if it is possible as I don't want to
- open the files directly if I can avoid it.
-
- Thanks
- --
- Sam Neely, CompuServe Incorporated +1 614 538 3718 (voice)
- 5000 Arlington Centre Blvd, Columbus, OH 43220 +1 614 457 0348 (FAX)
- Electronic Mail: InfoPlex: >CSI:SAM Internet: sam@csi.compuserve.com
- To err is human, to forgive is against company policy
-