<?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: Dormant Users in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732079#M21793</link>
    <description>Hi Ivan&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;I dont want to do it one by one.&lt;BR /&gt;I need a script that compares /etc/passwd and logins output and shows those users who have not logged in since 90 days..&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 15 Feb 2006 10:33:53 GMT</pubDate>
    <dc:creator>Vipulinux</dc:creator>
    <dc:date>2006-02-15T10:33:53Z</dc:date>
    <item>
      <title>Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732077#M21791</link>
      <description>Hi &lt;BR /&gt;Need a shell script that can tell the users who have not logged into the box since X no. of days eg 90 days ..&lt;BR /&gt;&lt;BR /&gt;Need to work on login and last command &lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Vipul</description>
      <pubDate>Wed, 15 Feb 2006 09:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732077#M21791</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2006-02-15T09:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732078#M21792</link>
      <description>Try something like this (I have not tested):&lt;BR /&gt;&lt;BR /&gt;# Not logged in days&lt;BR /&gt;NOT_LOGGED_DAYS=90&lt;BR /&gt;&lt;BR /&gt;# Get NOT_LOGGED_SEC seconds&lt;BR /&gt;&lt;BR /&gt;NOT_LOGGED_SEC=`date --date "$NOT_LOGGED_IN days ago" +%s`&lt;BR /&gt;&lt;BR /&gt;# Last logged&lt;BR /&gt;&lt;BR /&gt;LAST_LOGGED=`date --date "$(last -1 $1 | grep -v begins | awk '{ print $4,$5 }')" +%s`&lt;BR /&gt;&lt;BR /&gt;if [ $LAST_LOGGED -lt NOT_LOGGED_SEC ]; then&lt;BR /&gt;echo "The user $1 did not logged in $NOT_LOGGED_DAYS days"&lt;BR /&gt;else&lt;BR /&gt;echo "This user is not a dormitant user"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Usage:&lt;BR /&gt;&lt;BR /&gt;script_name username</description>
      <pubDate>Wed, 15 Feb 2006 10:26:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732078#M21792</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-02-15T10:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732079#M21793</link>
      <description>Hi Ivan&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;I dont want to do it one by one.&lt;BR /&gt;I need a script that compares /etc/passwd and logins output and shows those users who have not logged in since 90 days..&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 15 Feb 2006 10:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732079#M21793</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2006-02-15T10:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732080#M21794</link>
      <description>Here is a perl script that will list the 'last' info for all users. From this list you can decipher who has/has not logged in for last 90 days.&lt;BR /&gt;&lt;BR /&gt;You could pipe this output through sort, or include the perl code to sort, to get your requested info.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2006 11:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732080#M21794</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-02-15T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732081#M21795</link>
      <description>Hi Rick&lt;BR /&gt;&lt;BR /&gt;The script is great!!!&lt;BR /&gt;just wonder if it could show the year of login as well i.e whether it was 2005 or 2006&lt;BR /&gt;&lt;BR /&gt;Human Nature: Always demanding!!&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 15 Feb 2006 12:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732081#M21795</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2006-02-15T12:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732082#M21796</link>
      <description>last does not display the year so some sort of rotation scheme (of the wtmp file) is necessary to prevent the overlap of months</description>
      <pubDate>Wed, 15 Feb 2006 13:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732082#M21796</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-02-15T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732083#M21797</link>
      <description>Thanks for the replies!!</description>
      <pubDate>Thu, 16 Feb 2006 06:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732083#M21797</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2006-02-16T06:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dormant Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732084#M21798</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;there is 1 script but doesnt seem to give corret results..&lt;BR /&gt;is there a script that give full details of users who have'nt logged in since x no of days and also when was there last login etc..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers</description>
      <pubDate>Thu, 30 Mar 2006 05:41:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dormant-users/m-p/3732084#M21798</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2006-03-30T05:41:21Z</dc:date>
    </item>
  </channel>
</rss>

