First, please give the complete and accurate error message. Is the error still referencing chdir ? No one can diagnose with only part of the error message.
Here is an example on my system. My home directory /home/stevea is a soft link to /home/xxx
Code:
[mdi@lycoperdon home]$ ls -ld /home/stevea /home/xxx
lrwxrwxrwx 1 root root 3 2009-07-22 05:15 /home/stevea -> xxx
drwx------ 58 stevea stevea 4096 2009-07-22 05:14 /home/xxx
[mdi@lycoperdon home]$ ssh stevea@localhost
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
stevea@localhost's password:
Last login: Wed Jul 22 05:15:23 2009 from localhost.localdomain
[stevea@lycoperdon ~]$ pwd
/home/stevea
So ssh is not the problem.
If I mess up the link ownership, as you have done then it still works.
Code:
[root@lycoperdon home]# ls -ld /home/stevea /home/xxx
lrwxrwxrwx 1 stevea stevea 3 2009-07-22 05:28 /home/stevea -> xxx
drwx------ 58 stevea stevea 4096 2009-07-22 05:14 /home/xxx
[root@lycoperdon home]# ssh stevea@localhost
stevea@localhost's password:
Last login: Wed Jul 22 05:19:44 2009 from localhost.localdomain
Cut and paste your exact error messages.
My *guess* is this. The files under /media/disk-1/adah are not owned by adah. If you did
ls -l /media/disk-1/adah
you should see this.
If this is the case then you may want to do
chown -R adah:user /media/disk-1/adah
to recursively change the ownership of all files in this directory.