<?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: how to modify the root account (changing its home dir) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231208#M468481</link>
    <description>Did it. Thanks a lot</description>
    <pubDate>Tue, 23 Mar 2010 17:59:37 GMT</pubDate>
    <dc:creator>newa</dc:creator>
    <dc:date>2010-03-23T17:59:37Z</dc:date>
    <item>
      <title>how to modify the root account (changing its home dir)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231204#M468477</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I wanted to change the home directory for the root accout from "/" to "/roothome"&lt;BR /&gt;&lt;BR /&gt;I used usermod as follows and got a complaint:&lt;BR /&gt;&lt;BR /&gt;     ****************************&lt;BR /&gt;$ id&lt;BR /&gt;uid=200(newa) gid=300(sa)&lt;BR /&gt;$ sudo /usr/sbin/usermod -m -d /roothome root&lt;BR /&gt;Login root is currently in use&lt;BR /&gt;     ****************************&lt;BR /&gt;&lt;BR /&gt;All ideas on how to work around this?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance.</description>
      <pubDate>Fri, 19 Mar 2010 18:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231204#M468477</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-03-19T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the root account (changing its home dir)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231205#M468478</link>
      <description>I know I can edit the /etc/passwd file ... but I prefer use "usermod" command if possible. Let me know if you don't think it's possible.</description>
      <pubDate>Fri, 19 Mar 2010 18:46:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231205#M468478</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-03-19T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the root account (changing its home dir)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231206#M468479</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Use 'vipw' ... which is 'vi' wrapped with some lock protection for modifying the '/etc/password' file and some validity checking to make sure you do really mangle it.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 19 Mar 2010 18:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231206#M468479</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-03-19T18:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the root account (changing its home dir)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231207#M468480</link>
      <description>This is much simpler using vi. Use these command:&lt;BR /&gt; &lt;BR /&gt;mkdir /roothome&lt;BR /&gt;chmod 750 /roothome&lt;BR /&gt;chown root:sys /roothome&lt;BR /&gt;sudo vipw&lt;BR /&gt; &lt;BR /&gt;Then edit the first line where the root user is listed and change :/: to :/roothome:&lt;BR /&gt;and save the result.&lt;BR /&gt; &lt;BR /&gt;Now leave your current window open and start another window to login as root. If you can't login as root directly, you can probably use this:&lt;BR /&gt; &lt;BR /&gt;sudo su - root&lt;BR /&gt; &lt;BR /&gt;and that should login a new session. Then type pwd to verify your new $HOME directory. Now you can move all files in / to /roothome. Be sure to move (mv) the dot-files and dot-directories (/.profile, /.exrc, /.ssh, /Mail, etc) to /roothome. The / directory should only have directories, no files.&lt;BR /&gt; &lt;BR /&gt;Now your system may have been compromised by unknowledgeable sysadmins or bad applications that stored files in /...you'll have to move those back as you discover them. Ideally you can get the error fixed so the application still works OK.&lt;BR /&gt; &lt;BR /&gt;As all seasoned syadmins will tell you, / is never the right place for root's home, so /root or /roothome is a good choice.</description>
      <pubDate>Fri, 19 Mar 2010 18:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231207#M468480</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-03-19T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the root account (changing its home dir)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231208#M468481</link>
      <description>Did it. Thanks a lot</description>
      <pubDate>Tue, 23 Mar 2010 17:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-modify-the-root-account-changing-its-home-dir/m-p/5231208#M468481</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-03-23T17:59:37Z</dc:date>
    </item>
  </channel>
</rss>

