- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- sorting users
Operating System - Tru64 Unix
1752808
Members
5844
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP