- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script for max times logon
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-27-2009 04:47 AM
тАО10-27-2009 04:47 AM
./getprdef -t cjk1402
umaxlntr=5, tmaxlntr=5, dlylntr=2, lntmout=30
That will check users on the servers. I used my logon as a single user check, I would like it to check everyone. My main concern is umaxlntr=5
The old administrator mad changes on several users which is in violation of our audit policy, a script would allow me to see all that has been changed instead of using sam and looking at them one at a time. Any help is greatly appreciated
-Charlie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2009 06:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2009 06:44 AM
тАО10-27-2009 06:44 AM
Re: script for max times logon
I have tried to run the script received the below error
Syntax error at line 10 : `(' is not expected.
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2009 07:48 AM
тАО10-27-2009 07:48 AM
Re: script for max times logon
to use getprpw first you need trusted system and some cases full_path ;
awk -F: '{print $1}' /etc/passwd|while read username
do
/usr/lbin/getprpw -m umaxlntr $username
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2009 07:50 AM
тАО10-27-2009 07:50 AM
Re: script for max times logon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2009 10:06 AM
тАО10-27-2009 10:06 AM
Re: script for max times logon
umaxlntr=-1
umaxlntr=-1
umaxlntr=25
umaxlntr=-1
umaxlntr=-1
umaxlntr=-1
umaxlntr=-1
I need to be able to identify the user/users that have more then one where there is one who has 25 I would like to see the users logon id
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2009 10:36 AM
тАО10-27-2009 10:36 AM
Re: script for max times logon
do
echo $username
/usr/lbin/getprpw -m umaxlntr $username
done
or
awk -F: '{print $1}' /etc/passwd|while read username
do
retry=`/usr/lbin/getprpw -m umaxlntr $username|awk -F= '{print $2}'`
if [[ $retry -gt 25 ]]
then
echo "$username is over 25 limit"
fi
done