- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to get password Attributes
Operating System - HP-UX
1748202
Members
3053
Online
108759
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
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
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
06-05-2011 11:28 PM
06-05-2011 11:28 PM
Re: Need to get password Attributes
Dan,
>> phd=` grep ^PASSWORD_HISTORY_DEPTH /etc/default/security ...
Fine, except there is no actual requirement for the keyword to appear in column 1 , or even for a comment line to have a "#" in column 1 of the file, so there could be some white space in there... maybe:
phd=$( grep "^[[:space:]]*PASSWORD_HISTORY_DEPTH=" /etc/default/security | sed -e 's/.*=//' )
All goes to show there are many ways to do this, and each way requires you to think carefully about the input...
HTH
Duncan
I am an HPE Employee
>> phd=` grep ^PASSWORD_HISTORY_DEPTH /etc/default/security ...
Fine, except there is no actual requirement for the keyword to appear in column 1 , or even for a comment line to have a "#" in column 1 of the file, so there could be some white space in there... maybe:
phd=$( grep "^[[:space:]]*PASSWORD_HISTORY_DEPTH=" /etc/default/security | sed -e 's/.*=//' )
All goes to show there are many ways to do this, and each way requires you to think carefully about the input...
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 03:53 AM
06-07-2011 03:53 AM
Re: Need to get password Attributes
Hi Vidhya B,
for ur query i guess u want to write a script to get the said parmeters.
R u ware of the command "logins -aox"
Please check its man page even this command give the output of all the users with, last passwd reset, PASSWORD_MAXDAYS
PASSWORD_MINDAYS
PASSWORD_WARNDAYS
and many more check its man page for more details.
Hope this solves ur query.
Thanks & Regards
Vishnu Khandare
for ur query i guess u want to write a script to get the said parmeters.
R u ware of the command "logins -aox"
Please check its man page even this command give the output of all the users with, last passwd reset, PASSWORD_MAXDAYS
PASSWORD_MINDAYS
PASSWORD_WARNDAYS
and many more check its man page for more details.
Hope this solves ur query.
Thanks & Regards
Vishnu Khandare
You should deserve before U desire!!!!
- « Previous
-
- 1
- 2
- Next »
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