<?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: Help Changing UID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075286#M141522</link>
    <description>vipw protects you from a double edit on the file you edit.  It locks it the file during the edit.&lt;BR /&gt;&lt;BR /&gt;It is the preferred method of editing /etc/passwd&lt;BR /&gt;&lt;BR /&gt;As a practical matter, if you are the only administtrator, there is little harm that can be done by using vi.  Still, vipw is better.&lt;BR /&gt;&lt;BR /&gt;Its very important that every uid be unique.  Never change a uid to zero(I don't think you will).&lt;BR /&gt;&lt;BR /&gt;Its always a good idea to run pwck after a /etc/passwd edit to make sure you didn't make a mistake.  Also, prior to working back up the file and make the permissions on the backup very restricitve.&lt;BR /&gt;&lt;BR /&gt;If you leave a copy of passwd laying around it is a hacker/crack user's dream.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 19 Sep 2003 15:07:12 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-09-19T15:07:12Z</dc:date>
    <item>
      <title>Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075282#M141518</link>
      <description>Hi, I created Users for a new SAP instance before I found out that we have a standard UID strategy. The UID must contain the the SAP Instance Number. So now I need to change the UIDs, not the usernames of my SAP instance Oracle admin and SAP admin. I have read a few of the past forum posts and am confused. Is there some restriction to just changing the UID in the /etc/passwd file? What is the correct procedure for just changing the UID and not the username?</description>
      <pubDate>Fri, 19 Sep 2003 14:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075282#M141518</guid>
      <dc:creator>Tony Williams</dc:creator>
      <dc:date>2003-09-19T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075283#M141519</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;The UID simply needs to be unique.  You can edit the password file (carefully) with vi or vipw and manually change the UID numbers that you need to.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Sep 2003 14:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075283#M141519</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-19T14:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075284#M141520</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;consider that files already created will NOT automatically change their uids - you need a find command like this:&lt;BR /&gt;&lt;BR /&gt;find DIR -user OLDid1 -print | xargs chown NEWid1&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 19 Sep 2003 14:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075284#M141520</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2003-09-19T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075285#M141521</link>
      <description>You should never edit the password file with vi. The correct method is to use vipw which locks the password file so no one changes there password while you are mucking it up. It also does a sanity check on root to be sure the system will still reboot once you are done messing around.&lt;BR /&gt;Once you manually change the UID you will need to change the owner of any files that were created by or assigned to the old UID.&lt;BR /&gt;Have fun&lt;BR /&gt;-Dave</description>
      <pubDate>Fri, 19 Sep 2003 14:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075285#M141521</guid>
      <dc:creator>Dave Johnson_1</dc:creator>
      <dc:date>2003-09-19T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075286#M141522</link>
      <description>vipw protects you from a double edit on the file you edit.  It locks it the file during the edit.&lt;BR /&gt;&lt;BR /&gt;It is the preferred method of editing /etc/passwd&lt;BR /&gt;&lt;BR /&gt;As a practical matter, if you are the only administtrator, there is little harm that can be done by using vi.  Still, vipw is better.&lt;BR /&gt;&lt;BR /&gt;Its very important that every uid be unique.  Never change a uid to zero(I don't think you will).&lt;BR /&gt;&lt;BR /&gt;Its always a good idea to run pwck after a /etc/passwd edit to make sure you didn't make a mistake.  Also, prior to working back up the file and make the permissions on the backup very restricitve.&lt;BR /&gt;&lt;BR /&gt;If you leave a copy of passwd laying around it is a hacker/crack user's dream.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 19 Sep 2003 15:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075286#M141522</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-19T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075287#M141523</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you also can do it with SAM. Go to 'users' - mark one user, than under 'Actions' you have the choice 'Modify'. Sorting the list to UID, so you can check that all are unique UID's.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Volkmar</description>
      <pubDate>Fri, 19 Sep 2003 15:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075287#M141523</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2003-09-19T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075288#M141524</link>
      <description>Hi Tony,&lt;BR /&gt;&lt;BR /&gt;usermod -u ###### login_name&lt;BR /&gt;&lt;BR /&gt;where ######=new UID&lt;BR /&gt;&lt;BR /&gt;Be advised that you'll have to do a find -user login_name -exec chown.......so the users' files will have proper ownership post-change.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 19 Sep 2003 15:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075288#M141524</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-09-19T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075289#M141525</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for all the good info, as a followup how can I see the relationship between the UID and the username on a file?</description>
      <pubDate>Fri, 19 Sep 2003 15:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075289#M141525</guid>
      <dc:creator>Tony Williams</dc:creator>
      <dc:date>2003-09-19T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Changing UID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075290#M141526</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;You can use ls -n and compare it to ls -l.  That will give you the uid in the -n list and the name from the -l list.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Sep 2003 15:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-changing-uid/m-p/3075290#M141526</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-19T15:45:49Z</dc:date>
    </item>
  </channel>
</rss>

