LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Symbolic link. (http://www.linuxquestions.org/questions/linux-general-1/symbolic-link-159723/)

bulzbb 03-19-2004 04:02 AM

Symbolic link.
 
Hi,

I have make a symbolic/soft link to a directory:

$ ln -s /home/shared /home/user1/shared

As user1, I can see the link created in the home folder, and can even open it. But when I ftp, I can see the 'shared' folder (soft link), but I cannot open it up. It says "No such file or directory".

Anyone know what I need to do, so that I can open the folder in ftp?

Thanks. :)

AutOPSY 03-19-2004 04:29 AM

some utilities do not follow links.
you can either edit one of the configuration files for your ftpd,
or recompile it with follow symlinks enabled.

I do not know which.

AutOPSY 03-19-2004 04:31 AM

also try ls -l in the same directory as the symlink is in to make sure it is pointing at the right directory.

vi0lat0r 03-19-2004 04:31 AM

Or you can open home/shared with the FTP client, lol

bulzbb 03-19-2004 04:32 AM

Funny thing is, if I make a directory in my home folder, and make symlink of that directory in the same folder, I can access it just fine.

I dont think it's the permission, since I give 777 to the /home/shared folder. And I dont think it's because the documentroot of my ftp server is ~ (user home directory), because i did change it to /home, and still negative. :)

Thanks for the reply anywa.

bulzbb 03-19-2004 04:33 AM

Well, I dont want to make the document root as /home. That's why I created symlink. :cool:

bulzbb 03-19-2004 04:48 AM

I see, it's the ftp client. It doesnt go to where the symbolic link is poiting to, but just try to open the directory, as if it's a normal directory.

AutOPSY 03-19-2004 04:54 AM

yeah just make a normal directory in /home/yourFTPuser/shared

really that easy, if you cant follow symlinks properly.

bulzbb 03-19-2004 04:57 AM

Nevermind, I have a workaround for my problem. By the way, the idea of making shared folder is that so multiple users can access the same folder, add/edit/etc whatever is in the folder.

Thanks anyawy. :)


All times are GMT -5. The time now is 12:27 AM.