<?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: User Deletion script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972554#M120697</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you taken a look at the 'userdel' command?  It should do the trick for you.  Just make a list of the user accounts you want to delete from /etc/passwd and then write a little script to pass them to userdel.  If you make a list of account names to delete and put them in a file named users.del, you could do a little script like this:&lt;BR /&gt;&lt;BR /&gt;while read DEL&lt;BR /&gt;do&lt;BR /&gt;    userdel -r $DEL&lt;BR /&gt;done &lt;USERS.DEL&gt;&lt;/USERS.DEL&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
    <pubDate>Wed, 14 May 2003 01:48:07 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2003-05-14T01:48:07Z</dc:date>
    <item>
      <title>User Deletion script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972552#M120695</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am running HP-UX 11 and in need of a user deletion script to systematically cleanse the /etc/passwd as there are over 300 entries in there, SAM is too slow.&lt;BR /&gt;&lt;BR /&gt;Many thanks</description>
      <pubDate>Wed, 14 May 2003 01:41:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972552#M120695</guid>
      <dc:creator>Oktay Tasdemir</dc:creator>
      <dc:date>2003-05-14T01:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: User Deletion script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972553#M120696</link>
      <description>Have a look at the userdel command.  YOu could script it fairly easily.&lt;BR /&gt;&lt;BR /&gt;'man userdel' for more information.</description>
      <pubDate>Wed, 14 May 2003 01:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972553#M120696</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-05-14T01:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: User Deletion script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972554#M120697</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you taken a look at the 'userdel' command?  It should do the trick for you.  Just make a list of the user accounts you want to delete from /etc/passwd and then write a little script to pass them to userdel.  If you make a list of account names to delete and put them in a file named users.del, you could do a little script like this:&lt;BR /&gt;&lt;BR /&gt;while read DEL&lt;BR /&gt;do&lt;BR /&gt;    userdel -r $DEL&lt;BR /&gt;done &lt;USERS.DEL&gt;&lt;/USERS.DEL&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 01:48:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972554#M120697</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-05-14T01:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: User Deletion script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972555#M120698</link>
      <description>hi,&lt;BR /&gt;u can do this with userdel command. get all usernames into a file. Edit the file and delete the user names those u don't want to remove. Ex: root, lp, sys, bin etc.,&lt;BR /&gt;&lt;BR /&gt;#cat /etc/passwd|cut -f 1 -d: &amp;gt;/tmp/passwd&lt;BR /&gt;&lt;BR /&gt;for i in `cat /tmp/passwd`&lt;BR /&gt;do&lt;BR /&gt;userdel -r $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 03:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-deletion-script/m-p/2972555#M120698</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2003-05-14T03:28:24Z</dc:date>
    </item>
  </channel>
</rss>

