<?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 root's home in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863831#M397203</link>
    <description>Hi Fred,&lt;BR /&gt;&lt;BR /&gt;It is better to use /root. I n case you need to boot in single user mode /home is not available. Create a dir in the root name root.&lt;BR /&gt;&lt;BR /&gt;drwx------   5 root       sys           1024 Sep 29 17:31 root&lt;BR /&gt;&lt;BR /&gt;mv your .profile to /root&lt;BR /&gt;edit your profile to change settings to /root. ( like .sh_history )&lt;BR /&gt;&lt;BR /&gt;HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`&lt;BR /&gt;&lt;BR /&gt;change root in the passwd file to the new /root homedir.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Mon, 04 Oct 2004 10:00:57 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens_1</dc:creator>
    <dc:date>2004-10-04T10:00:57Z</dc:date>
    <item>
      <title>changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863826#M397198</link>
      <description>I'm about to change root's home from / to /homeroot.&lt;BR /&gt;&lt;BR /&gt;Can I do this 'on the fly' without troubles, or do I need a reboot, etc?&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Oct 2004 09:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863826#M397198</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2004-10-04T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863827#M397199</link>
      <description>You can change it BUT only those processes started after the change will be aware of the change. The more "standard" name is /root rather than /homeroot but that is up to you.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Oct 2004 09:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863827#M397199</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-10-04T09:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863828#M397200</link>
      <description>Hi Fred,&lt;BR /&gt;&lt;BR /&gt;Yes you can if it is also mounted in /&lt;BR /&gt;&lt;BR /&gt;copy .???* files to  roots  new home dir.&lt;BR /&gt;vipw to add the passwd file &lt;BR /&gt;and log in again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;PS mind the right on roots home dir ( .ssh etc.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Oct 2004 09:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863828#M397200</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-10-04T09:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863829#M397201</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;I can't imagine why you couldn't do it on the fly.  You will eventually want to make sure you can reboot and log in and all, but, for now, just go ahead and switch it and change the /etc/passwd entry.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 04 Oct 2004 09:57:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863829#M397201</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-10-04T09:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863830#M397202</link>
      <description>There are no problems with this. You can acheive this using SAM in better way. &lt;BR /&gt;You have to take care of the scripts which might be using earlier home of root. for that for now you can create a link to old root home. &lt;BR /&gt;&lt;BR /&gt;Using SAM change root home. &lt;BR /&gt;&lt;BR /&gt;ln -s &lt;NEW home=""&gt; &lt;OLD home=""&gt; &lt;BR /&gt;&lt;BR /&gt;This should take care of scripts also which call your root home. &lt;BR /&gt;Then over a period of time you can change whereever you are using it. &lt;BR /&gt;&lt;BR /&gt;I have practised it in my setup.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant&lt;/OLD&gt;&lt;/NEW&gt;</description>
      <pubDate>Mon, 04 Oct 2004 09:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863830#M397202</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-04T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863831#M397203</link>
      <description>Hi Fred,&lt;BR /&gt;&lt;BR /&gt;It is better to use /root. I n case you need to boot in single user mode /home is not available. Create a dir in the root name root.&lt;BR /&gt;&lt;BR /&gt;drwx------   5 root       sys           1024 Sep 29 17:31 root&lt;BR /&gt;&lt;BR /&gt;mv your .profile to /root&lt;BR /&gt;edit your profile to change settings to /root. ( like .sh_history )&lt;BR /&gt;&lt;BR /&gt;HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`&lt;BR /&gt;&lt;BR /&gt;change root in the passwd file to the new /root homedir.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 04 Oct 2004 10:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863831#M397203</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2004-10-04T10:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863832#M397204</link>
      <description>Yes before you go for a link create just do &lt;BR /&gt;&lt;BR /&gt;cp -pr /root/* /homeroot&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;mv /root /rootold&lt;BR /&gt;ln -s /homeroot /root&lt;BR /&gt;&lt;BR /&gt;This works perfectly. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Mon, 04 Oct 2004 10:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863832#M397204</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-04T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863833#M397205</link>
      <description>I always change my root's home into /root as soon as I set up a new server.  It is recommended that you do that as well. There is no issue in changing the home of root as long as you make sure that all the . files follow and, as mentionned previously, only those processes started after the change will be impacted. &lt;BR /&gt;</description>
      <pubDate>Mon, 04 Oct 2004 10:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863833#M397205</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2004-10-04T10:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863834#M397206</link>
      <description>Thanks all.&lt;BR /&gt;&lt;BR /&gt;I was thinking of /homeroot as I saw it in an HP-UX manual, someplace.  If /root is more commonly used then I'll do that.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;p.s. Robert-Jan, I was planning on using /homeroot, not /home/root.  I agree, it should be in the root file system, not /home.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Oct 2004 10:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863834#M397206</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2004-10-04T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863835#M397207</link>
      <description>Although all what needs to be done has been said already I'd just like to add&lt;BR /&gt; &lt;BR /&gt;create an new dir in / filesystem (so it is accessible from miniroot in maintenance mode)&lt;BR /&gt;  &lt;BR /&gt;mkdir -m 0700 /root&lt;BR /&gt; &lt;BR /&gt;An easy way to move the dot files to the new home is by letting the shell glob them&lt;BR /&gt; &lt;BR /&gt;cd / &amp;amp;&amp;amp; mv .[!.]* /root&lt;BR /&gt; &lt;BR /&gt;Change the 6th field in /etc/passwd to the new home by editing /etc/passwd with "vipw" (takes care of advisory file locking)&lt;BR /&gt; &lt;BR /&gt;then logout and in again.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Oct 2004 10:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863835#M397207</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-10-04T10:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: changing root's home</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863836#M397208</link>
      <description>Thanks for all the information.</description>
      <pubDate>Mon, 04 Oct 2004 10:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-s-home/m-p/4863836#M397208</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2004-10-04T10:35:07Z</dc:date>
    </item>
  </channel>
</rss>

