<?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: Problem with su - username / Not going to home directory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728643#M78519</link>
    <description>Thanks Guys for responding. I did put this in the wrong section of the forums.</description>
    <pubDate>Wed, 22 May 2002 20:14:27 GMT</pubDate>
    <dc:creator>D. Jackson_1</dc:creator>
    <dc:date>2002-05-22T20:14:27Z</dc:date>
    <item>
      <title>Problem with su - username / Not going to home directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728640#M78516</link>
      <description>Hello all -&lt;BR /&gt;Small problem that I am stuck with.&lt;BR /&gt;I am currently logged in as root under /(root), I issue a su - username it logs me in with this ID but when I issue a pwd as this ID I am currently in the /(root) filesystem and not my home destination. I cannot change out of this directory /(root) (which is okay).&lt;BR /&gt;This is giving us problems on two accounts.&lt;BR /&gt;&lt;BR /&gt;Users configured with SAM and given a different location for home directory (/home/penac/outbound/executrack).&lt;BR /&gt;&lt;BR /&gt;Can anyone help?&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Tue, 21 May 2002 20:58:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728640#M78516</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2002-05-21T20:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with su - username / Not going to home directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728641#M78517</link>
      <description>User configured with SAM?&lt;BR /&gt;&lt;BR /&gt;Are you sure you're not after the HP-UX General group?&lt;BR /&gt;&lt;BR /&gt;In any case, I'd start checking things like whether the user's directory does exist, and to ensure that when you are issuing 'su', you are also using the - between it and the username (ie. 'su - username').  The - indicates that it should inherit the new user's environment (ie. home dir etc.).  Is kinda important.&lt;BR /&gt;&lt;BR /&gt;Anyway.. just a bouncing point from a Linux guy..</description>
      <pubDate>Wed, 22 May 2002 00:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728641#M78517</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-05-22T00:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with su - username / Not going to home directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728642#M78518</link>
      <description>check "/etc/passwd" entry for username.&lt;BR /&gt;Typically for root it would look something like this:&lt;BR /&gt; root:x:0:0:root:/root:/bin/bash&lt;BR /&gt;&lt;BR /&gt;where "/root" is home directory.&lt;BR /&gt;&lt;BR /&gt;Changing that should cause "su -" or any other form of login, to place you in whatever directory you specify.&lt;BR /&gt;&lt;BR /&gt; Ex:&lt;BR /&gt; root:x:0:0:root:/home/root:/bin/bash&lt;BR /&gt;&lt;BR /&gt;Just make sure the directory you specify excists. But if not, you sould receive an error saying so.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 May 2002 08:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728642#M78518</guid>
      <dc:creator>Bjoern Myrland</dc:creator>
      <dc:date>2002-05-22T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with su - username / Not going to home directory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728643#M78519</link>
      <description>Thanks Guys for responding. I did put this in the wrong section of the forums.</description>
      <pubDate>Wed, 22 May 2002 20:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-su-username-not-going-to-home-directory/m-p/2728643#M78519</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2002-05-22T20:14:27Z</dc:date>
    </item>
  </channel>
</rss>

