How to identify users who have not logged in for a period of time
This document (000021128) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
Situation
Resolution
2. Open a terminal or command prompt.
3. Use the following command to list all users who usernames are retrieved from /etc/passwd file:
# cut -d: -f1 /etc/passwd4. Use the following command to check last login record of each user to display the last login information, where <username> = actual username:
# lastlog -u <username>5. Look at the "Last logon", "Last login", or "Latest" column shown in the output to determine the last login for <username>.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021128
- Creation Date: 04-Jul-2023
- Modified Date:13-Sep-2023
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com