<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script for max times logon in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521906#M367156</link>
    <description>Thanks Tim&lt;BR /&gt;&lt;BR /&gt;I have tried to run the script received the below error&lt;BR /&gt;&lt;BR /&gt;Syntax error at line 10 : `(' is not expected.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help</description>
    <pubDate>Tue, 27 Oct 2009 13:44:50 GMT</pubDate>
    <dc:creator>Charles Keyser</dc:creator>
    <dc:date>2009-10-27T13:44:50Z</dc:date>
    <item>
      <title>script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521904#M367154</link>
      <description>We have 7 HP-UX servers, if someone could help with a very simple script using this command&lt;BR /&gt;./getprdef -t cjk1402&lt;BR /&gt;umaxlntr=5, tmaxlntr=5, dlylntr=2, lntmout=30&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;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&lt;BR /&gt;-Charlie&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521904#M367154</guid>
      <dc:creator>Charles Keyser</dc:creator>
      <dc:date>2009-10-27T11:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521905#M367155</link>
      <description>awk -F: '{print $1} /etc/passwd|while read username&lt;BR /&gt;do&lt;BR /&gt;     getprpw -m umaxlntr $username&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;(a value of -1 means default)&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;awk -F: '$3&amp;gt;100 {print $1} ... ( to find users with IDs over 100 )</description>
      <pubDate>Tue, 27 Oct 2009 13:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521905#M367155</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-10-27T13:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521906#M367156</link>
      <description>Thanks Tim&lt;BR /&gt;&lt;BR /&gt;I have tried to run the script received the below error&lt;BR /&gt;&lt;BR /&gt;Syntax error at line 10 : `(' is not expected.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help</description>
      <pubDate>Tue, 27 Oct 2009 13:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521906#M367156</guid>
      <dc:creator>Charles Keyser</dc:creator>
      <dc:date>2009-10-27T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521907#M367157</link>
      <description>Correction:&lt;BR /&gt;&lt;BR /&gt;to use getprpw first you need trusted system and some cases full_path ;&lt;BR /&gt;&lt;BR /&gt;awk -F: '{print $1}' /etc/passwd|while read username&lt;BR /&gt; do&lt;BR /&gt;  /usr/lbin/getprpw -m umaxlntr $username&lt;BR /&gt;   done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Oct 2009 14:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521907#M367157</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-27T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521908#M367158</link>
      <description>Sorry.. forgot an apostrophy</description>
      <pubDate>Tue, 27 Oct 2009 14:50:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521908#M367158</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-10-27T14:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521909#M367159</link>
      <description>Thanks again. Here is the out put&lt;BR /&gt;&lt;BR /&gt;umaxlntr=-1&lt;BR /&gt;umaxlntr=-1&lt;BR /&gt;umaxlntr=25&lt;BR /&gt;umaxlntr=-1&lt;BR /&gt;umaxlntr=-1&lt;BR /&gt;umaxlntr=-1&lt;BR /&gt;umaxlntr=-1&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Tue, 27 Oct 2009 17:06:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521909#M367159</guid>
      <dc:creator>Charles Keyser</dc:creator>
      <dc:date>2009-10-27T17:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: script for max times logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521910#M367160</link>
      <description>awk -F: '{print $1}' /etc/passwd|while read username&lt;BR /&gt;do&lt;BR /&gt;echo $username&lt;BR /&gt;/usr/lbin/getprpw -m umaxlntr $username&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;awk -F: '{print $1}' /etc/passwd|while read username&lt;BR /&gt;do&lt;BR /&gt;retry=`/usr/lbin/getprpw -m umaxlntr $username|awk -F= '{print $2}'`&lt;BR /&gt;&lt;BR /&gt;if [[ $retry -gt 25 ]]&lt;BR /&gt;then&lt;BR /&gt;    echo "$username is over 25 limit"&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Oct 2009 17:36:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-max-times-logon/m-p/4521910#M367160</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-10-27T17:36:31Z</dc:date>
    </item>
  </channel>
</rss>

