<?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 do compare and delete in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535559#M898620</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Before you run this script, I would surround the userdel command with something like:&lt;BR /&gt;if [ "${i}" != "root" ]&lt;BR /&gt;  then&lt;BR /&gt;    userdel -r ${i}&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;AND &lt;BR /&gt;1) Make sure that you are logged in as root in at least two sessions&lt;BR /&gt;2) you have a copy of the passwd file&lt;BR /&gt;This way you can get yourself out of possible trouble as fast as you got yourself into trouble.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Jun 2001 14:55:32 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-06-01T14:55:32Z</dc:date>
    <item>
      <title>Script do compare and delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535556#M898616</link>
      <description>Hi All!&lt;BR /&gt;How can I solve the problem below:&lt;BR /&gt;I need to clean de passwd file from old users. I have a $list that have users not able to access the system. I have to make a script that read a line (first n characters) from passwd file, compare this with this list and, if it's match, delete the line from passwd file.</description>
      <pubDate>Fri, 01 Jun 2001 14:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535556#M898616</guid>
      <dc:creator>Vogra</dc:creator>
      <dc:date>2001-06-01T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script do compare and delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535557#M898617</link>
      <description>I'd suggest feeding your list to the userdel command and letting it do the work for you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2001 14:38:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535557#M898617</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-06-01T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script do compare and delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535558#M898619</link>
      <description>while read i&lt;BR /&gt;do&lt;BR /&gt;userdel -r $i&lt;BR /&gt;done &amp;lt; list&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2001 14:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535558#M898619</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-06-01T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script do compare and delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535559#M898620</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Before you run this script, I would surround the userdel command with something like:&lt;BR /&gt;if [ "${i}" != "root" ]&lt;BR /&gt;  then&lt;BR /&gt;    userdel -r ${i}&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;AND &lt;BR /&gt;1) Make sure that you are logged in as root in at least two sessions&lt;BR /&gt;2) you have a copy of the passwd file&lt;BR /&gt;This way you can get yourself out of possible trouble as fast as you got yourself into trouble.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2001 14:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535559#M898620</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-01T14:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script do compare and delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535560#M898621</link>
      <description>Vincenzo and Clay,&lt;BR /&gt;thank you so much for your help. It's ran fine.</description>
      <pubDate>Fri, 01 Jun 2001 19:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-do-compare-and-delete/m-p/2535560#M898621</guid>
      <dc:creator>Vogra</dc:creator>
      <dc:date>2001-06-01T19:05:37Z</dc:date>
    </item>
  </channel>
</rss>

