Thread View: comp.unix.sys5.r4
1 messages
1 total messages
Started by Sam Neely
Thu, 28 Jan 1993 04:18
What's the correct way to write a wtmp entry on SVR4?
Author: Sam Neely
Date: Thu, 28 Jan 1993 04:18
Date: Thu, 28 Jan 1993 04:18
18 lines
1151 bytes
1151 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads