<?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 to remove user account in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418689#M707040</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. What sam does is to effectively execute 'userdel -r &lt;LOGIN&gt;' and then fire up a background job with a 'find' to find and delete the files owned by that user. Yes. It is possible to remove the user id from the ftpusers file through the script. It's too late for me now. But, someone can definitely help you.&lt;BR /&gt;&lt;BR /&gt;2. It's used by sam to manipulate the logins. I believe it is expected to run from SAM only. You could use userdel.sam though.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/LOGIN&gt;</description>
    <pubDate>Wed, 10 Nov 2004 01:56:15 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-11-10T01:56:15Z</dc:date>
    <item>
      <title>Script to remove user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418688#M707039</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1) I need a script to remove user id. It is same as the remove user through SAM. And should remove from all local files system. Input is the user id. Any ideas? I know the command used to remove user id is /usr/lbin/userdel. Is it possible to remove the user id from /etc/ftpd/ftpusers in this script as well?&lt;BR /&gt;&lt;BR /&gt;2) What is /usr/sam/lbin/upusrfiles for?&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Wed, 10 Nov 2004 01:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418688#M707039</guid>
      <dc:creator>Ngoh Chean Siung</dc:creator>
      <dc:date>2004-11-10T01:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script to remove user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418689#M707040</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. What sam does is to effectively execute 'userdel -r &lt;LOGIN&gt;' and then fire up a background job with a 'find' to find and delete the files owned by that user. Yes. It is possible to remove the user id from the ftpusers file through the script. It's too late for me now. But, someone can definitely help you.&lt;BR /&gt;&lt;BR /&gt;2. It's used by sam to manipulate the logins. I believe it is expected to run from SAM only. You could use userdel.sam though.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/LOGIN&gt;</description>
      <pubDate>Wed, 10 Nov 2004 01:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418689#M707040</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T01:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script to remove user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418690#M707041</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;userdel -r &lt;USERID&gt; is used to remove user id including the home directory. How to pipe all the deleted file info into /var/sam/sam_remove.log?&lt;BR /&gt;&lt;BR /&gt;As I know, when removing the user account through SAM, all the deleted file info will be pipe into /var/sam/sam_remove.log.&lt;BR /&gt;&lt;BR /&gt;Below is the command that I used in my script:&lt;BR /&gt;/usr/sam/lbin/userdel.sam -r $userid&lt;BR /&gt;&lt;BR /&gt;Note: $userid is the user id to be removed.&lt;BR /&gt;&lt;BR /&gt;regards.&lt;/USERID&gt;</description>
      <pubDate>Wed, 10 Nov 2004 06:34:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-remove-user-account/m-p/3418690#M707041</guid>
      <dc:creator>Ngoh Chean Siung</dc:creator>
      <dc:date>2004-11-10T06:34:52Z</dc:date>
    </item>
  </channel>
</rss>

