<?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: mv command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046723#M135585</link>
    <description>I'm going with Kenny on this one - if you rename the users login in /etc/passwd (and presumably change their home directory at the same time) without changing their uid, then you won't need to chown the user's login directory - the uid doesn't change!&lt;BR /&gt;&lt;BR /&gt;The same applies to their group id too.</description>
    <pubDate>Wed, 13 Aug 2003 01:29:47 GMT</pubDate>
    <dc:creator>Stuart Carmichael</dc:creator>
    <dc:date>2003-08-13T01:29:47Z</dc:date>
    <item>
      <title>mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046716#M135578</link>
      <description>Hi,&lt;BR /&gt;I'm moving a users homedirectory to differnt directory as his user name changes.Is it need to do chown after doing this.My ? is Is the 2 nd step is necessasry.Pls clear this.&lt;BR /&gt;1.mv 1xxx 1yyy&lt;BR /&gt;2.chown -R 1yyy(username):group name 1yyy(home)&lt;BR /&gt; &lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 11 Aug 2003 20:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046716#M135578</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2003-08-11T20:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046717#M135579</link>
      <description>If you don't change the ownership of the directory after you move it, the user will not have access to it unless his group membership is the same and there are group read and write permissions on all the files.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Mon, 11 Aug 2003 20:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046717#M135579</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-08-11T20:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046718#M135580</link>
      <description>Thanks mark.So it seems it is really necessary to "chown" after the "mv".Correct?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 11 Aug 2003 20:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046718#M135580</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2003-08-11T20:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046719#M135581</link>
      <description>Yes, you need to chown the files to the new user ID.  I cannot say if the syntax you provided above is appropriate or not.  If, when you are done, the permissions look like they do in other users' directories, you are probably all set.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Mon, 11 Aug 2003 20:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046719#M135581</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-08-11T20:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046720#M135582</link>
      <description>Thanks for the quick reply.&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 11 Aug 2003 20:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046720#M135582</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2003-08-11T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046721#M135583</link>
      <description>I'd use usermod to do this.&lt;BR /&gt;with the -m and -l options.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;           -m                  Move the user's home directory to the&lt;BR /&gt;                               directory specified with the -d option.  If&lt;BR /&gt;                               the home directory exists, the directory must&lt;BR /&gt;                               have read and execute permission by group,&lt;BR /&gt;                               where group is the primary group of the&lt;BR /&gt;                               login.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;           -l new_logname      Specifies the new login name for the user.&lt;BR /&gt;                               It consists of a string of printable&lt;BR /&gt;                               characters that does not contain a colon (:)&lt;BR /&gt;                               or a newline (\n).</description>
      <pubDate>Mon, 11 Aug 2003 20:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046721#M135583</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-08-11T20:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046722#M135584</link>
      <description>Are you just trying to change his username only? &lt;BR /&gt;If so you just need to edit the /etc/passwd file and replace his old username with the new one</description>
      <pubDate>Wed, 13 Aug 2003 00:51:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046722#M135584</guid>
      <dc:creator>kenny chia</dc:creator>
      <dc:date>2003-08-13T00:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046723#M135585</link>
      <description>I'm going with Kenny on this one - if you rename the users login in /etc/passwd (and presumably change their home directory at the same time) without changing their uid, then you won't need to chown the user's login directory - the uid doesn't change!&lt;BR /&gt;&lt;BR /&gt;The same applies to their group id too.</description>
      <pubDate>Wed, 13 Aug 2003 01:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/3046723#M135585</guid>
      <dc:creator>Stuart Carmichael</dc:creator>
      <dc:date>2003-08-13T01:29:47Z</dc:date>
    </item>
  </channel>
</rss>

