From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078615810672.tru64-unix-managers.marc@archive.invalid> From: Ellen Davis Date: Thu, 28 Aug 1997 14:20:34 +0000 To: tru64-unix-managers Subject: number of logins X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078615810672 I have my DU4.0b system configured so that all users shell in /etc/passwd is a C program which I wrote, profile. The profile prints system messages, etc. and then execs the user's chosen shell. One of the things I want profile to do is to figure out the number of times a user has been logged into the system. I want to limit the number of logins to 2. How can I find the number of times a user has been logged into the system in a C program? Is there a system call which would provide this information? Ellen Davis Ellen.Davis@uc.edu