Find the answer to your Linux question:
Results 1 to 4 of 4
I have an old computer running a Samba to serve some shared files. I want to run an FTP server as well to serve the same shared directory. I put ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    18

    FTP and Symbolic links


    I have an old computer running a Samba to serve some shared files. I want to run an FTP server as well to serve the same shared directory. I put a symbolic link to the directory /shared in /var/ftp, but when I try to access the directory via ftp it won't change. When I do ls -l it shows the link to the directory with the proper permissions. Can anyone help me set this up so that I don't need to have two copies of the files on my server.

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Why don't you just have the samba server share the same directory as the ftp server does?

  3. #3
    Just Joined! scottro's Avatar
    Join Date
    Feb 2006
    Posts
    57
    I don't know if this has anything to do with your problem, however, at one point, setting up pure-ftpd on FreeBSD, I found that if I did something like
    Code:
    ln -s ../share
    It didn't work. However, if I typed the full path, eg

    Code:
    ln -s /usr/ftpusers/share
    It worked. <shrug>

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2005
    Posts
    18
    Quote Originally Posted by lakerdonald
    Why don't you just have the samba server share the same directory as the ftp server does?
    The samba server is already setup and running, so I figured it would be easier if possible to use a sym link. If not then that is what I will have to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •