- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HPUX 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
02-19-2008 06:40 AM
02-19-2008 06:40 AM
I want to disable accounts not active for 90 days.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2008 06:45 AM
02-19-2008 06:45 AM
Re: HPUX accounts
finger
last
and others, I'm sure.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2008 06:50 AM
02-19-2008 06:50 AM
Re: HPUX accounts
If the system is trusted you can use:
# /usr/lbin/getprpw -m slogint
to see the last successful login time for a user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 06:57 AM
02-20-2008 06:57 AM
Re: HPUX accounts
cat >/tmp/lastlogin.log
for uuid in `cat /etc/passwd | awk -F: '{print $1}' `
do
export lti=`/usr/lbin/getprpw -m slogint $uuid`
echo $uuid $lti >> /tmp/lastlogin.log
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 07:05 AM
02-20-2008 07:05 AM
SolutionThis script will write Last Successful out to a file for review.
#!/bin/sh
touch /tmp/lastlogin.log
for uuid in `cat /etc/passwd | awk -F: '{print $1}' `
do
export lti=`/usr/lbin/getprpw -m slogint $uuid`
echo $uuid $lti >> /tmp/lastlogin.log
done