<?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: cd ~homedir not working in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526168#M62002</link>
    <description>normally 'cd ~' will take you to your own home dir. 'cd ~userhomedir' will not work because that would translate to something like /home/user/user, which probably doesn't exist.&lt;BR /&gt;&lt;BR /&gt;if you want to do 'cd ~otheruserhomedir', i'm not aware this is possible. afaik ~ always points to your own home dir and thus you should address others home dirs always as a full path.</description>
    <pubDate>Thu, 05 Nov 2009 08:48:28 GMT</pubDate>
    <dc:creator>dirk dierickx</dc:creator>
    <dc:date>2009-11-05T08:48:28Z</dc:date>
    <item>
      <title>cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526160#M61994</link>
      <description>&lt;BR /&gt;For sometime now, I am unable to do - &lt;BR /&gt;&lt;BR /&gt;cd ~homedir &lt;BR /&gt;but &lt;BR /&gt;cd /homedir works...&lt;BR /&gt;&lt;BR /&gt;Can you suggest some pointers as to how I can troubleshoot or fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Mon, 02 Nov 2009 23:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526160#M61994</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-11-02T23:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526161#M61995</link>
      <description>Also sudo bash takes a very long time to come back to the password prompt...</description>
      <pubDate>Mon, 02 Nov 2009 23:47:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526161#M61995</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-11-02T23:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526162#M61996</link>
      <description>&lt;!--!*#--&gt;&amp;gt; cd ~homedir &lt;BR /&gt;&lt;BR /&gt;If you want "/homedir", then say "/homedir".&lt;BR /&gt;The "~user_name" notation is used with a user&lt;BR /&gt;name.  That path to that user's home&lt;BR /&gt;directory is obtained from the "passwd" data&lt;BR /&gt;base ("/etc/passwd", or wherever).  Unless&lt;BR /&gt;there's a user name of "homedir", "~homedir"&lt;BR /&gt;makes no sense.&lt;BR /&gt;&lt;BR /&gt;What is the user name here?&lt;BR /&gt;&lt;BR /&gt;Where is that user's home directory?</description>
      <pubDate>Tue, 03 Nov 2009 00:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526162#M61996</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-11-03T00:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526163#M61997</link>
      <description>Sorry I meant cd ~user-home-dir, cd /user-home-dir works.&lt;BR /&gt;&lt;BR /&gt;Also sudo bash is very slow to respond...</description>
      <pubDate>Tue, 03 Nov 2009 00:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526163#M61997</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-11-03T00:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526164#M61998</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Sorry I meant cd ~user-home-dir,&lt;BR /&gt;&amp;gt; cd /user-home-dir works.&lt;BR /&gt;&lt;BR /&gt;So, does that mean that you're happy, or is&lt;BR /&gt;there still a problem/question there?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also sudo bash is very slow to respond...&lt;BR /&gt;&lt;BR /&gt;A different thread with "sudo" in the Subject&lt;BR /&gt;might get more attention from people who know&lt;BR /&gt;more about sudo than I.</description>
      <pubDate>Tue, 03 Nov 2009 03:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526164#M61998</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-11-03T03:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526165#M61999</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;Did you check which is the homedir set for your user?&lt;BR /&gt;&lt;BR /&gt;getent passwd &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;Next to last field is homedir.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Goran&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:10:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526165#M61999</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2009-11-03T06:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526166#M62000</link>
      <description>its ~user_id&lt;BR /&gt;if your user id existe and it has home dir.&lt;BR /&gt;&lt;BR /&gt;have you seen some other problem or some specific thing when you not able to do this.&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Tue, 03 Nov 2009 11:48:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526166#M62000</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-11-03T11:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526167#M62001</link>
      <description>When you execute "cd ~foo", the shell checks the home directory location of user "foo" from the user database (usually /etc/passwd, but can be NIS or LDAP too if configured) and then moves to that directory.&lt;BR /&gt;&lt;BR /&gt;If the user "foo" has his home directory set as /home/bar, the command "cd ~foo" moves to /home/bar. &lt;BR /&gt;&lt;BR /&gt;Since you say your "cd /homedir" works, it is probably not a home directory permission problem. &lt;BR /&gt;&lt;BR /&gt;Maybe the user cannot look up the home directory location for some reason?&lt;BR /&gt;What are the permissions of /, /etc and /etc/passwd?&lt;BR /&gt;&lt;BR /&gt;Please run:&lt;BR /&gt;&lt;BR /&gt;ls -ld / /etc /etc/passwd&lt;BR /&gt;&lt;BR /&gt;The response should be something like this. Note the permissions:&lt;BR /&gt;drwxr-xr-x  25 root root  4096 2009-10-20 13:30 /&lt;BR /&gt;drwxr-xr-x 162 root root 16384 2009-11-03 12:57 /etc&lt;BR /&gt;-rw-r--r--   1 root root  1854 2009-10-06 15:18 /etc/passwd&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 03 Nov 2009 12:39:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526167#M62001</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-11-03T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526168#M62002</link>
      <description>normally 'cd ~' will take you to your own home dir. 'cd ~userhomedir' will not work because that would translate to something like /home/user/user, which probably doesn't exist.&lt;BR /&gt;&lt;BR /&gt;if you want to do 'cd ~otheruserhomedir', i'm not aware this is possible. afaik ~ always points to your own home dir and thus you should address others home dirs always as a full path.</description>
      <pubDate>Thu, 05 Nov 2009 08:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526168#M62002</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2009-11-05T08:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526169#M62003</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] 'cd ~userhomedir' will not work&lt;BR /&gt;&amp;gt; because [...]&lt;BR /&gt;&lt;BR /&gt;For a valid explanation of what this means,&lt;BR /&gt;see Matti Kurkela's response.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] i'm not aware [...]&lt;BR /&gt;&lt;BR /&gt;Try it?&lt;BR /&gt;&lt;BR /&gt;debi# cd ~&lt;BR /&gt;debi# pwd&lt;BR /&gt;/root&lt;BR /&gt;debi# cd ~ftp&lt;BR /&gt;debi# pwd&lt;BR /&gt;/home/ftp&lt;BR /&gt;&lt;BR /&gt;debi# grep '^ftp:' /etc/passwd&lt;BR /&gt;ftp:x:110:65534::/home/ftp:/bin/false&lt;BR /&gt;&lt;BR /&gt;Or read about it.  "man &lt;YOUR_SHELL&gt;" should&lt;BR /&gt;provide the details.&lt;/YOUR_SHELL&gt;</description>
      <pubDate>Thu, 05 Nov 2009 15:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526169#M62003</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-11-05T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: cd ~homedir not working</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526170#M62004</link>
      <description>nice, didn't know about that one yet! is there anything unix can't do? :)</description>
      <pubDate>Fri, 06 Nov 2009 08:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cd-homedir-not-working/m-p/4526170#M62004</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2009-11-06T08:20:24Z</dc:date>
    </item>
  </channel>
</rss>

