number of logins

From: Ellen Davis <daviser_at_email.uc.edu>
Date: Thu, 28 Aug 1997 10:20:34 -0400

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_at_uc.edu
Received on Thu Aug 28 1997 - 16:40:58 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT