- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- inactive users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 09:24 AM
11-17-2008 09:24 AM
inactive users
How would I locate user names that have not been active in say 60 days?
Find command?
Thanks in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 09:44 AM
11-17-2008 09:44 AM
Re: inactive users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 09:46 AM
11-17-2008 09:46 AM
Re: inactive users
# /usr/lbin/getprpw -m slogint username
Will show the last successful login for the user 'username'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 09:51 AM
11-17-2008 09:51 AM
Re: inactive users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 10:15 AM
11-17-2008 10:15 AM
Re: inactive users
awk -F: "{print $1}" /etc/passwd | finger
might get you started
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 03:30 PM
11-17-2008 03:30 PM
Re: inactive users
>awk -F: "{print $1}" /etc/passwd | finger
Probably needs a few more: :-)
awk -F: '{print $1}' /etc/passwd | xargs finger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 04:14 PM
11-17-2008 04:14 PM
Re: inactive users
If you have a trusted system and want to run the getprpw command I mentioned for all users, this would do:
for MYUSER in $(do
echo "${MYUSER} - \c"
/usr/lbin/getprpw -m slogint ${MYUSER}
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2008 04:16 PM
11-17-2008 04:16 PM
Re: inactive users
for MYUSER in $(awk -F: '{print $1}' /etc/passwd)
do
echo "${MYUSER} - \c"
/usr/lbin/getprpw -m slogint ${MYUSER}
done
Ignore my script above.