<?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 script to  check for null passwords in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577221#M18541</link>
    <description>Hello, does anyone have a script to share with me thats goes and checks for null passwords. &lt;BR /&gt;&lt;BR /&gt;And also check for any user that has a GID of 0 except for root.&lt;BR /&gt;&lt;BR /&gt;Thanks for the time and points will be assigned.</description>
    <pubDate>Wed, 06 Jul 2005 10:50:03 GMT</pubDate>
    <dc:creator>Ragni Singh</dc:creator>
    <dc:date>2005-07-06T10:50:03Z</dc:date>
    <item>
      <title>script to  check for null passwords</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577221#M18541</link>
      <description>Hello, does anyone have a script to share with me thats goes and checks for null passwords. &lt;BR /&gt;&lt;BR /&gt;And also check for any user that has a GID of 0 except for root.&lt;BR /&gt;&lt;BR /&gt;Thanks for the time and points will be assigned.</description>
      <pubDate>Wed, 06 Jul 2005 10:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577221#M18541</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-07-06T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: script to  check for null passwords</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577222#M18542</link>
      <description>Check ID=0&lt;BR /&gt;&lt;BR /&gt;grep -v root /etc/passwd | awk -F ":" '$3 == 0 { print $1 }'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2005 11:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577222#M18542</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-06T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: script to  check for null passwords</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577223#M18543</link>
      <description>I don't have a linux to test but i beleave that a null password has no password entry in /etc/shadow, so:&lt;BR /&gt;&lt;BR /&gt;cat /etc/shadow | awk -F ":" '$2 == "" { print $1 }'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This could tell y you the username with null password.</description>
      <pubDate>Wed, 06 Jul 2005 11:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577223#M18543</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-06T11:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: script to  check for null passwords</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577224#M18544</link>
      <description>A couple of quick and dirty scripts&lt;BR /&gt;&lt;BR /&gt;If you use the /etc/shadow file&lt;BR /&gt;cat /etc/shadow | awk -F: '{print $1, $2}'&lt;BR /&gt;&lt;BR /&gt;This will list the 1st field and the 2nd field of the shadow file. If the 2nd field of the LOGNAME is blank, no passwd.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Other option is to use the passwd -S 'LOGNAME' command. This will give a verbose output of the passwd status for the account.&lt;BR /&gt;&lt;BR /&gt;Example;&lt;BR /&gt;cat /etc/passwd | awk -F: '{print $1}' | while read line&lt;BR /&gt;do&lt;BR /&gt;passwd -S $line&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For GID=0&lt;BR /&gt;cat /etc/group | awk -F: '{print $1, $3}'&lt;BR /&gt;This will list the LOGNAME and the GID value.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are the GUI tools available as well that will allow you to look at the settings. No scripts required.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2005 11:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577224#M18544</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-06T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: script to  check for null passwords</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577225#M18545</link>
      <description>Additional note.&lt;BR /&gt;&lt;BR /&gt;Those accounts with the !! characters, the account is locked. Cannot use this account to login. These accounts may be required for applications you may have and it is OK to have these accounts locked.&lt;BR /&gt;&lt;BR /&gt;Personally, I like the passwd -S $LOGNAME&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2005 11:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577225#M18545</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-06T11:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: script to  check for null passwords</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577226#M18546</link>
      <description>Thanks, points are assigned.</description>
      <pubDate>Wed, 06 Jul 2005 12:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-check-for-null-passwords/m-p/3577226#M18546</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-07-06T12:19:02Z</dc:date>
    </item>
  </channel>
</rss>

