<?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: changing the uid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845111#M92002</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can change the user id by executing&lt;BR /&gt;usermod -u 111 &lt;LOGINNAME&gt;&lt;BR /&gt;&lt;BR /&gt;all the files in the users home directory will change automatically. For the rest you will have to change them manually.&lt;BR /&gt;Something like this should work&lt;BR /&gt;find / -user &lt;OLDUSERID&gt; -exec chown &lt;NEWUSER&gt; {} \;&lt;BR /&gt;This will look everywhere and change the ownership of all files owned by olduserid to teh new user id.&lt;/NEWUSER&gt;&lt;/OLDUSERID&gt;&lt;/LOGINNAME&gt;</description>
    <pubDate>Thu, 14 Nov 2002 16:46:25 GMT</pubDate>
    <dc:creator>William Whiteford</dc:creator>
    <dc:date>2002-11-14T16:46:25Z</dc:date>
    <item>
      <title>changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845109#M92000</link>
      <description>Hi All:&lt;BR /&gt;&lt;BR /&gt;I have a request to change the users uid from 101 to 111. What does it require to do this.&lt;BR /&gt;&lt;BR /&gt;I have lots of file created by this user in many directories. &lt;BR /&gt;&lt;BR /&gt;I need to change the uid to this user(batch) and change all the files owned by this user?? Does the files owned by this user have the uid information kept somewhere?&lt;BR /&gt;&lt;BR /&gt;What is the best way to achieve this? Pl help.&lt;BR /&gt;&lt;BR /&gt;Raji</description>
      <pubDate>Thu, 14 Nov 2002 16:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845109#M92000</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2002-11-14T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845110#M92001</link>
      <description>hi raji&lt;BR /&gt;&lt;BR /&gt;follow this link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe5324b3ef09fd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe5324b3ef09fd611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Thu, 14 Nov 2002 16:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845110#M92001</guid>
      <dc:creator>Domenico_5</dc:creator>
      <dc:date>2002-11-14T16:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845111#M92002</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can change the user id by executing&lt;BR /&gt;usermod -u 111 &lt;LOGINNAME&gt;&lt;BR /&gt;&lt;BR /&gt;all the files in the users home directory will change automatically. For the rest you will have to change them manually.&lt;BR /&gt;Something like this should work&lt;BR /&gt;find / -user &lt;OLDUSERID&gt; -exec chown &lt;NEWUSER&gt; {} \;&lt;BR /&gt;This will look everywhere and change the ownership of all files owned by olduserid to teh new user id.&lt;/NEWUSER&gt;&lt;/OLDUSERID&gt;&lt;/LOGINNAME&gt;</description>
      <pubDate>Thu, 14 Nov 2002 16:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845111#M92002</guid>
      <dc:creator>William Whiteford</dc:creator>
      <dc:date>2002-11-14T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845112#M92003</link>
      <description>User the usermod command. usermod -u 111.</description>
      <pubDate>Thu, 14 Nov 2002 16:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845112#M92003</guid>
      <dc:creator>Ken Hubnik_2</dc:creator>
      <dc:date>2002-11-14T16:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845113#M92004</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can do this with 'usermod' and 'find'.  'usermod will perform the necessary changes to the 'etc/passwd'.  Use 'find' to find and change the ownership:&lt;BR /&gt;&lt;BR /&gt;# find / -user oldid -exec chown newname {} \;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Nov 2002 16:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845113#M92004</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-14T16:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845114#M92005</link>
      <description>usermod -u 111 tom&lt;BR /&gt;&lt;BR /&gt;will change the uid of user tom to 111. It will not change the ownerships of the files. Man usermod for details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To do that:&lt;BR /&gt;&lt;BR /&gt;find / -user 101 -exec chown tom {} \;&lt;BR /&gt;&lt;BR /&gt;I dont like to start a find from / but this may be your only choice unless for example you know that all his files will be located in ,perhaps 3 directorties /usr,/home, &amp;amp; /data,&lt;BR /&gt;&lt;BR /&gt;in that case:&lt;BR /&gt;&lt;BR /&gt;find /usr /home /data -user 101 -exec chown tom {} \;&lt;BR /&gt;&lt;BR /&gt;Man find for details.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2002 16:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845114#M92005</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-11-14T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: changing the uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845115#M92006</link>
      <description>Now that you know how to do the tasks from the command line, you'll be prepared to fix things if SAM hoses them up:&lt;BR /&gt;&lt;BR /&gt;sam-&amp;gt;Accounts for users and groups-&amp;gt;Users-&amp;gt;Actions-&amp;gt;Modify&lt;BR /&gt;&lt;BR /&gt;Sam will take care of usermod and file ownerships, reliably in my experience unless you restart the system while the batch jobs are running.  If you change username instead of uid, SAM will get everything except the name of the sendmail mbox, if there is one, so you'd have to do that manually.</description>
      <pubDate>Fri, 15 Nov 2002 15:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-uid/m-p/2845115#M92006</guid>
      <dc:creator>W.C. Epperson</dc:creator>
      <dc:date>2002-11-15T15:21:16Z</dc:date>
    </item>
  </channel>
</rss>

