- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: show all logins with expiry
Operating System - Linux
1752576
Members
4148
Online
108788
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
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
тАО03-31-2011 07:02 AM
тАО03-31-2011 07:02 AM
show all logins with expiry
In redhat linux (RHEL5) is there a way to show all the users on the box (like hp-ux logins) with user passwd expiry information?
Thanks
Brian
Thanks
Brian
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 08:23 AM
тАО03-31-2011 08:23 AM
Re: show all logins with expiry
Is "passwd -S -a" what you're looking for?
Alternatively, if you're looking for expiration dates, "chage -l"... but it takes one user at a time only.
However, that's easy to fix:
cut -d : -f 1 < /etc/passwd | while read user
do
echo
echo "User: $user"
chage -l "$user"
done
MK
Alternatively, if you're looking for expiration dates, "chage -l
However, that's easy to fix:
cut -d : -f 1 < /etc/passwd | while read user
do
echo
echo "User: $user"
chage -l "$user"
done
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 09:01 AM
тАО03-31-2011 09:01 AM
Re: show all logins with expiry
MK
passwd -S -a does not seem to work on my RHEL box (not sure why!), But the script you put does the Job. Thanks much MK!
Thanks
Brian.
passwd -S -a does not seem to work on my RHEL box (not sure why!), But the script you put does the Job. Thanks much MK!
Thanks
Brian.
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