<?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 Another easy one... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416432#M706973</link>
    <description>Here's another one.  What is an easy way to test if a user exists on a system?  I want to test for a user's existence and then use that ID to chmod a directory.  Thanks.</description>
    <pubDate>Fri, 05 Nov 2004 21:52:50 GMT</pubDate>
    <dc:creator>TheJuiceman</dc:creator>
    <dc:date>2004-11-05T21:52:50Z</dc:date>
    <item>
      <title>Another easy one...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416432#M706973</link>
      <description>Here's another one.  What is an easy way to test if a user exists on a system?  I want to test for a user's existence and then use that ID to chmod a directory.  Thanks.</description>
      <pubDate>Fri, 05 Nov 2004 21:52:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416432#M706973</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2004-11-05T21:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Another easy one...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416433#M706974</link>
      <description>Hi Bobby,&lt;BR /&gt;&lt;BR /&gt;There are quite a few ways like grepping the user from /etc/passwd, commands like logins, id etc.,. I use 'pwget'.&lt;BR /&gt;&lt;BR /&gt;USER=Your_user_name&lt;BR /&gt;pwget -n $USER |grep -q "^${USER}:"&lt;BR /&gt;if [[ $? = 0 ]]&lt;BR /&gt;then&lt;BR /&gt;Your_chmod_commands&lt;BR /&gt;else&lt;BR /&gt;echo "$USER does not exist"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 05 Nov 2004 22:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416433#M706974</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-05T22:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Another easy one...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416434#M706975</link>
      <description>Sri, you are awesome!!!  I never would have come up with that.  Thanks a million for the help!!!</description>
      <pubDate>Fri, 05 Nov 2004 23:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-easy-one/m-p/3416434#M706975</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2004-11-05T23:52:11Z</dc:date>
    </item>
  </channel>
</rss>

