LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-19-2004, 05:02 AM   #1
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
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.
 
Old 03-19-2004, 05:29 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
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.
 
Old 03-19-2004, 05:31 AM   #3
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
also try ls -l in the same directory as the symlink is in to make sure it is pointing at the right directory.
 
Old 03-19-2004, 05:31 AM   #4
vi0lat0r
Member
 
Registered: Aug 2003
Location: Lewisville, TX
Distribution: Kubuntu
Posts: 295

Rep: Reputation: 30
Or you can open home/shared with the FTP client, lol
 
Old 03-19-2004, 05:32 AM   #5
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
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.
 
Old 03-19-2004, 05:33 AM   #6
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Well, I dont want to make the document root as /home. That's why I created symlink.
 
Old 03-19-2004, 05:48 AM   #7
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
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.
 
Old 03-19-2004, 05:54 AM   #8
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
yeah just make a normal directory in /home/yourFTPuser/shared

really that easy, if you cant follow symlinks properly.
 
Old 03-19-2004, 05:57 AM   #9
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a Symbolic Link? little_penguin Linux - Software 2 05-14-2005 10:27 AM
symbolic link ilnli Slackware 6 01-04-2005 06:05 PM
help with a symbolic link mykrob Linux - Software 6 11-22-2004 11:01 AM
symbolic link jsetter Linux - Newbie 4 11-22-2004 08:18 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 11:06 PM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration