GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: sorting users
Operating System - Tru64 Unix
1857273
Members
4309
Online
110372
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-09-2004 08:08 PM
02-09-2004 08:08 PM
what is the command ( scripts) to sort users
who have not logging for more than 6 months.
Tru64 Unix 5.1A.
who have not logging for more than 6 months.
Tru64 Unix 5.1A.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 10:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 03:50 AM
02-11-2004 03:50 AM
Re: sorting users
Here's another solution that isn't shell dependant but requires the use of C2 security.
It pulls the username out of the prpasswd database for users that have last logged in more that 6 months ago. You need to feed it the date 6 months ago in unix time (# of seconds since epoch).
/tcb/bin/edauth -g |./prpasswd.sed |awk -F: '{ for ( i=1; i<=NF ; i++ ){ if ( $i ~ /^u_succhg#/ ) { split($i,x,"#") ; if ( x[2] < 1060965450 ) print $1 }}}'
I use the prpasswd.sed script to fix an old bug in NIS where the "\" in edauth output mucks up the creation of btree files. The script strips those characters out.
It pulls the username out of the prpasswd database for users that have last logged in more that 6 months ago. You need to feed it the date 6 months ago in unix time (# of seconds since epoch).
/tcb/bin/edauth -g |./prpasswd.sed |awk -F: '{ for ( i=1; i<=NF ; i++ ){ if ( $i ~ /^u_succhg#/ ) { split($i,x,"#") ; if ( x[2] < 1060965450 ) print $1 }}}'
I use the prpasswd.sed script to fix an old bug in NIS where the "\" in edauth output mucks up the creation of btree files. The script strips those characters out.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP