Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- show all logins with expiry
System Administration
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP