<?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: UID/GUID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801327#M81995</link>
    <description>I would not do a chown -R unless you've looked at all files in the tree to make sure that they all should be owned by oracle:oracle.&lt;BR /&gt;&lt;BR /&gt;You may end up changing far more than you intended.&lt;BR /&gt;&lt;BR /&gt;For example on some of our servers there is an apache server under the oracle directories.  The files in there need to be owned by www and not oracle.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Sep 2002 13:38:57 GMT</pubDate>
    <dc:creator>Sean OB_1</dc:creator>
    <dc:date>2002-09-06T13:38:57Z</dc:date>
    <item>
      <title>UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801321#M81989</link>
      <description>I need to change UID/GUID of oracle user from &lt;BR /&gt;103/102 to 101/101 (it's not used by any other user). Is it safe to do it? And what would be the correct way?&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 06 Sep 2002 13:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801321#M81989</guid>
      <dc:creator>Olga_1</dc:creator>
      <dc:date>2002-09-06T13:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801322#M81990</link>
      <description>1) Be sure user not logged on&lt;BR /&gt;2) Make change in /etc/passwd&lt;BR /&gt;3) cd to users home directory&lt;BR /&gt;4) chown -R UID:GUID .&lt;BR /&gt;5) If any other directories might have files owned by user, then use chown on them too.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 06 Sep 2002 13:30:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801322#M81990</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-09-06T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801323#M81991</link>
      <description>Is your system trusted? I would change this through Sam to avoid any pitfalls. Then make sure that the directorys like /opt/oracle are owned by oracle and not 103. You may need to run a chown -R on the directories owned by oracle.  Just make sure you know what oracle owns before you make your change.  Maybe a find -user oracle ...&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Fri, 06 Sep 2002 13:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801323#M81991</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-09-06T13:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801324#M81992</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can do this.  Use 'usermod' to change both the UID and the GID:&lt;BR /&gt;&lt;BR /&gt;# usermod -u 101 oracle&lt;BR /&gt;# groupmod -g 101 -o dba&lt;BR /&gt;&lt;BR /&gt;Yoo will need to subsequently find all files belonging to the old UID and old GID and change them to the new ones.  The 'find' command can be used for this.&lt;BR /&gt;&lt;BR /&gt;# find / -user 103 -exec chown oracle:dba {} \;&lt;BR /&gt;&lt;BR /&gt;See the man pages of the three commands for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 13:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801324#M81992</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-06T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801325#M81993</link>
      <description>I would do a find on the system and look for all files owned by oracle.&lt;BR /&gt;&lt;BR /&gt;find / -u oracle &amp;gt; /tmp/oracle.files&lt;BR /&gt;find / -g oracle &amp;gt; /tmp/oracle-group.files&lt;BR /&gt;&lt;BR /&gt;This will identify all files that you will need to change ownership and group for.&lt;BR /&gt;&lt;BR /&gt;Then use SAM or change the password file.&lt;BR /&gt;&lt;BR /&gt;Then you can run&lt;BR /&gt;&lt;BR /&gt;cat /tmp/oracle.files | xargs chown oracle&lt;BR /&gt;cat /tmp/oracle-group.files | xargs chgrp oracle&lt;BR /&gt;&lt;BR /&gt;to change the ownership and group of the files needed.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 13:38:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801325#M81993</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-09-06T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801326#M81994</link>
      <description>Yeah it is safe to do it &lt;BR /&gt;&lt;BR /&gt;ensure no one is logged and oracle is not up .&lt;BR /&gt;&lt;BR /&gt;change the uid/gid&lt;BR /&gt;&lt;BR /&gt;chown -R uid:gid $oracle_home&lt;BR /&gt;&lt;BR /&gt;chown -R uid:gid /opt/oracle&lt;BR /&gt;&lt;BR /&gt;also check for the ownership of the files in /etc belongin g to oracle&lt;BR /&gt;&lt;BR /&gt;also donot assign the old UID/GID to anyone else till everything settles down&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Fri, 06 Sep 2002 13:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801326#M81994</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-09-06T13:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801327#M81995</link>
      <description>I would not do a chown -R unless you've looked at all files in the tree to make sure that they all should be owned by oracle:oracle.&lt;BR /&gt;&lt;BR /&gt;You may end up changing far more than you intended.&lt;BR /&gt;&lt;BR /&gt;For example on some of our servers there is an apache server under the oracle directories.  The files in there need to be owned by www and not oracle.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 13:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801327#M81995</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-09-06T13:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801328#M81996</link>
      <description>You might want to make sure that the oracle user doesn't have any processes running when you change the UID and GID.  That could make things interesting.  Hmm, I'll have to try that one some day.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 13:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801328#M81996</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-09-06T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: UID/GUID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801329#M81997</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Warning: Do not use &lt;BR /&gt;chmod -R oracle:dba $ORACLE_HOME&lt;BR /&gt;because some files in the ORACLE_HOME Directory needs in some cases root-permission, e.g. $ORACLE_HOME/bin/dbsmnp has sometimes suid-root&lt;BR /&gt;&lt;BR /&gt;The correct way to change uid/gid is a &lt;BR /&gt;find / -user &lt;OLD_GID&gt; -exec chown -h &lt;NEW_GID&gt; {} \;&lt;BR /&gt;&lt;BR /&gt;You have to use the -h option of chown, without -h option you will change the destination of a link and not the link, this will causes problems sometimes.&lt;BR /&gt;&lt;BR /&gt;If you change uid/gid with SAM, SAM will do the find - command without -h option.&lt;BR /&gt;&lt;BR /&gt;Christian&lt;/NEW_GID&gt;&lt;/OLD_GID&gt;</description>
      <pubDate>Mon, 09 Sep 2002 09:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uid-guid/m-p/2801329#M81997</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-09-09T09:33:18Z</dc:date>
    </item>
  </channel>
</rss>

