<?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 maintenance in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119748#M150554</link>
    <description>I'm sorry if my question is not clear..&lt;BR /&gt;When I say I'm deleting the users manually, I'm using "userdel -r". &lt;BR /&gt;&lt;BR /&gt;I need to know  some method (useradd option or a script) to permenantly  delete the user accounts from the unix box once the user account is expired.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sailesh</description>
    <pubDate>Fri, 14 Nov 2003 12:42:54 GMT</pubDate>
    <dc:creator>Sailesh_1</dc:creator>
    <dc:date>2003-11-14T12:42:54Z</dc:date>
    <item>
      <title>User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119745#M150551</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have users created on a trusted system with expire date set.everything is going well.users are deactivated on their expiry date set. then I have to delete them manually from the system.&lt;BR /&gt;&lt;BR /&gt;Now, I need to know is there any way, I can automate the user deletion process.i.e, once the user is expired, then delete the user from the system.&lt;BR /&gt;&lt;BR /&gt;Please let me know is there any way to do it..may be a script could do it..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sailesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2003 12:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119745#M150551</guid>
      <dc:creator>Sailesh_1</dc:creator>
      <dc:date>2003-11-14T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119746#M150552</link>
      <description>userdel -r should do what you need. Man userdel for details. -r will delete their home diirectory (and subdirectories) BUT if this user owns files anywhere else they are left in place. A simple find /dir1 /dir2 -user user -exec rm {} \; would take take of those BUT this could be dangerous if any files were used by other processes/users. The same could apply to files in the user's home directory. That is why this is typically a manual process. If you KNOW that it is safe to remove all the files in the user's home directory then userdel -r is your boy.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2003 12:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119746#M150552</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-11-14T12:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119747#M150553</link>
      <description>Sailesh,&lt;BR /&gt; &lt;BR /&gt;You can use the directory creation date for their home directory as the timer to check against.&lt;BR /&gt; &lt;BR /&gt;Just write a script to check versus that date and store the value in a variable per user or a file per user.  &lt;BR /&gt; &lt;BR /&gt;If your expiration timer is 30 days. write a script to check once a day at midnite or early morning to see if the date. As they reach the deadline then the script will spawn run: userdel -r $USERNAME</description>
      <pubDate>Fri, 14 Nov 2003 12:34:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119747#M150553</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-11-14T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119748#M150554</link>
      <description>I'm sorry if my question is not clear..&lt;BR /&gt;When I say I'm deleting the users manually, I'm using "userdel -r". &lt;BR /&gt;&lt;BR /&gt;I need to know  some method (useradd option or a script) to permenantly  delete the user accounts from the unix box once the user account is expired.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sailesh</description>
      <pubDate>Fri, 14 Nov 2003 12:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119748#M150554</guid>
      <dc:creator>Sailesh_1</dc:creator>
      <dc:date>2003-11-14T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119749#M150555</link>
      <description>Correct me if im wrong but userdel -r removes all traces of hte user, including removing them from the /etc/passwd file.&lt;BR /&gt; &lt;BR /&gt;I just tested it and it works...</description>
      <pubDate>Fri, 14 Nov 2003 12:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119749#M150555</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-11-14T12:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119750#M150556</link>
      <description>Sailesh,&lt;BR /&gt;&lt;BR /&gt;As the others have already suggested, of course, put userdel -r command inside your script...&lt;BR /&gt;&lt;BR /&gt;but, what I wanted to add, regarding how the script can detect expired users, I think you could use the command,&lt;BR /&gt;&lt;BR /&gt; "logins -a -l &lt;USERNAME.&gt;&lt;/USERNAME.&gt;&lt;BR /&gt;perhaps more straightforward than looking at their home dir creation date.&lt;BR /&gt;&lt;BR /&gt; - John</description>
      <pubDate>Fri, 14 Nov 2003 12:57:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119750#M150556</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2003-11-14T12:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: User maintenance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119751#M150557</link>
      <description>I meant,&lt;BR /&gt;&lt;BR /&gt;logins -a -l &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; - John&lt;/USERNAME&gt;</description>
      <pubDate>Fri, 14 Nov 2003 12:58:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-maintenance/m-p/3119751#M150557</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2003-11-14T12:58:30Z</dc:date>
    </item>
  </channel>
</rss>

