- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Trusted. Display expired accounts.
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-03-2004 05:40 AM
11-03-2004 05:40 AM
I have dozens of 11.i servers which are trusted and need a way to track down user ids that are inactive. Is there way to get this through modprpw or similar commands? Preferably something i could script to automate.
thanks in advance,
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 05:48 AM
11-03-2004 05:48 AM
Re: Trusted. Display expired accounts.
Maybe the script in this link from itrc might help,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000074740865
The itrc doc id is USECKBAN00000934.
hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 06:32 AM
11-03-2004 06:32 AM
Re: Trusted. Display expired accounts.
In the /tcb/auth/files directory are the accounts of the system. Within each account file you can decipher the info regarding the passwd expiration, disabled, etc. Write a script to enter into each file and check for the pattern that says the account is disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 06:37 AM
11-03-2004 06:37 AM
Solution# logins | awk '{print $1}' | xargs -n1 | while read USER
do
LOCKOUT=$(getprpw -m lockout $USER)
if [ "$LOCKOUT" != "lockout=0000000" ]
then
echo "User account is not active or locked for reasons"
fi
done
a bit ON (i.e 1) in any of the lockout word position indicates the reason for the lockout.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 07:04 AM
11-03-2004 07:04 AM
Re: Trusted. Display expired accounts.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 01:25 AM
11-08-2004 01:25 AM
Re: Trusted. Display expired accounts.
getprpw -m slogint (username)
slogint time of last successful login
and scripted it.
#################################
for i in `cut -d : -f 1 /etc/passwd`
do
a=$(/usr/lbin/getprpw -m slogint $i | grep -v $yr)
echo $i " " $a >>./user_idle.tmp
done
cat ./user_idle.tmp | grep slogint
#################################
Where $yr equals this year. I have run this on several machine and have found several accounts that havent logged in since last year (which is a start for deleting accounts here).
THanks