I'm trying to use autofs to mount public_ftp dirs of users on an anonymous
ftp server under ~ftp/users/, so the public_ftp dir of the user becomes
available as ~ftp/users/user. Since anonymous ftp chroots to ~ftp,
symlinks are out of the question since those don't work in a chrooted
environment.

Since the linux loopback mount does not support directories, I wanted to
use NFS on localhost instead.

But.. autofs is 'smart' and recognizes that I'm mounting localhost or even
the name of eth0 so it symlinks:

> pwd
Current remote directory: /users
> dir
total 0
lrwxrwxrwx   1 root     root           21 Dec 16 21:07 koos -> /home/koos/public_ftp

Which won't work:

> cd koos
koos: No such file or directory.

since that symlink is not valid for the ~ftp tree.

Is there a way to make autofs stop this symlinking ?

(Yes, I've digged manpages, /usr/doc and other places for the answer)

                                     Koos van den Hout

-- 
  Koos van den Hout,                           PGP key via keyservers
  [EMAIL PROTECTED] (Home)
  [EMAIL PROTECTED] (Work)                     Fax +31-30-2817051
  http://www.cetis.hvu.nl/~koos/

Reply via email to