Vincent Danen wrote:
> 
> I've got the anonftp package installed and everything is working fine..
> the only problem I have is with symlinks...  I'm not sure what kind of
> permissions I should have on stuff... basically, I tried symlinking
> /home/ftp/pub/custom to /files/custom which then contains subdirectories
> which contain custom RPM files I've made.  The problem is, when I ftp in
> as anonymous, I can't do a cd /pub/custom because the server tells me it's
> not there, yet when I do a cd /pub it shows up as "custom@ ->
> /files/custom"...  I changed the permissions on /files/* (recursive) to
> "root.ftp" and still nothing...
> 
> Am I missing something here?  Using wu ftp server, stock Helios install.
> Help!

The problem is that you can't create links INSIDE /home/ftp that refer
to things outside /home/ftp.  When the FTP daemon starts running for a
new user, it will change it's notion of the root of the filesystem. 
That is why you have /etc, /lib, /bin, etc inside /home/ftp.  Once a
user connects to the FTP server, the FTP daemon forgets all about
everything that might exist outside /home/ftp.

You'll have to move /files/custom to /home/ftp/pub/custom, then create a
symlink back from /home/ftp/pub/custom to /files/custom:

        cp -a /files/custom /home/ftp/pub/custom
        rm -r /files/custom
        ln -s /home/ftp/pub/custom /files/custom

That should fix it all up!
 
-- 
Steve Philp
Network Administrator
Advance Packaging Corporation
[EMAIL PROTECTED]

Reply via email to