AppGate Network Security AB

Can I list users that have never logged in?

Yes, it can be done with a script.

  1. Open a terminal to the AppGate Security Server and become root.
  2. Create a directory "/var/opt/appgate/local" (mkdir /var/opt/appgate/local).
  3. Use "File Transfer" to copy the script to /var/opt/appgate/local on the AppGate Security Server.
  4. Make the script executable (chmod a+x /var/opt/appgate/local/list_never_logged_in.sh).

Whenever you need a list of users that has not logged in for a period you run the script. The following command will list all users that did not login during November 2008 (entire command is one line):

/var/opt/appgate/local/list_never_logged_in.sh /appgate/log/appgate.log.200811*

If you need to save the output in a file (entire command is one line):

 /var/opt/appgate/local/list_never_logged_in.sh /appgate/log/appgate.log.200811* > /tmp/report.txt