<?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 UID's in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430720#M2923</link>
    <description>Actually, the owner of a file is stored in the inode structure as a uid. The association with the username is done by the command that prints the username (i.e ls, find, ...) using the getpwuid(3) call.&lt;BR /&gt;&lt;BR /&gt;So, when a user's uid is modified, the getpwuid(3) call fails, which results the calling programs (ls, find, ...) to print the uid (numeric) instead of the username.&lt;BR /&gt;&lt;BR /&gt;Rik.</description>
    <pubDate>Thu, 13 Jul 2000 21:50:10 GMT</pubDate>
    <dc:creator>RikTytgat</dc:creator>
    <dc:date>2000-07-13T21:50:10Z</dc:date>
    <item>
      <title>Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430716#M2919</link>
      <description>We are synchronizing UID's across the enterprise.  We planned to run the usermod -u command to change the UID and then do a search of the filesystems to find orphaned files and directories. We seem to have a difference of opinion as to whether the search of filesystems is neccesary. Preliminary tests look as if it isn't.&lt;BR /&gt;Any ideas? We're using both 10.20 and 11.0</description>
      <pubDate>Thu, 13 Jul 2000 21:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430716#M2919</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2000-07-13T21:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430717#M2920</link>
      <description>Of course it is. &lt;BR /&gt;&lt;BR /&gt;According to the manpage for usermod(1m), this command only changes the passwd entry, but does not search the file systems for files owned by the user in question.&lt;BR /&gt;&lt;BR /&gt;When changing a user's uid, he won't be able to access his files anymore.&lt;BR /&gt;&lt;BR /&gt;When performing the command 'ls -l', orphaned files and directories show with the uid and gid instead of username and groupname for unknown uids and gids.&lt;BR /&gt;&lt;BR /&gt;When changing uids for non-standard unix users only, one might restrict the search to the user's home directories.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Rik</description>
      <pubDate>Thu, 13 Jul 2000 21:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430717#M2920</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-07-13T21:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430718#M2921</link>
      <description>I tested the theory. I performed a usermod - u 3001 loginname and it changed the UID to 3001 from 104. A subsequent find / -user 3001 listed all of the files I previously owned (username was displayed). Another find command using the old UID produced no results. While I wouldn't expect the system to search and replace UID's with usermod. I guess I may have demonstrated that the association to the username remained with only the UID changing.  I'd like to avoid the search issue if at all possible. Clear as mud?</description>
      <pubDate>Thu, 13 Jul 2000 21:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430718#M2921</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2000-07-13T21:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430719#M2922</link>
      <description>Actually, the owner of a file is stored in the inode structure as a uid. The association with the username is done by the command that prints the username (i.e ls, find, ...) using the getpwuid(3) call.&lt;BR /&gt;&lt;BR /&gt;So, when a user's uid is modified, the getpwuid(3) call fails, which results the calling programs (ls, find, ...) to print the uid (numeric) instead of the username.&lt;BR /&gt;&lt;BR /&gt;Rik.</description>
      <pubDate>Thu, 13 Jul 2000 21:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430719#M2922</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-07-13T21:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430720#M2923</link>
      <description>Actually, the owner of a file is stored in the inode structure as a uid. The association with the username is done by the command that prints the username (i.e ls, find, ...) using the getpwuid(3) call.&lt;BR /&gt;&lt;BR /&gt;So, when a user's uid is modified, the getpwuid(3) call fails, which results the calling programs (ls, find, ...) to print the uid (numeric) instead of the username.&lt;BR /&gt;&lt;BR /&gt;Rik.</description>
      <pubDate>Thu, 13 Jul 2000 21:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430720#M2923</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-07-13T21:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430721#M2924</link>
      <description>IF that's the case then why did the find search display the correct user name instead of the old UID number?</description>
      <pubDate>Thu, 13 Jul 2000 21:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430721#M2924</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2000-07-13T21:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing UID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430722#M2925</link>
      <description>Good question.&lt;BR /&gt;&lt;BR /&gt;Did the usermod command take a long time to execute? If it actually does scan all mounted file systems, it should take considerable time to execute.&lt;BR /&gt;&lt;BR /&gt;Another possibility is that usermod automatically changes all files under the user's home directory. This behaviour is not in the manpage for the command.&lt;BR /&gt;&lt;BR /&gt;Finally, I can assure you that the inode is the place where the owner of a file stored, and the association is done using getpwuid(3).&lt;BR /&gt;&lt;BR /&gt;Rik</description>
      <pubDate>Thu, 13 Jul 2000 21:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-uid-s/m-p/2430722#M2925</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-07-13T21:57:58Z</dc:date>
    </item>
  </channel>
</rss>

