Web Hosting Talk







View Full Version : symbolic link in /home/ftp on ProFTPd (Ensim)


5angle.com
05-03-2002, 06:35 AM
I've searched but have been unable to figure out how to have the public html directory show up in the root anonymous ftp directory.

Background:
Ensim
ProFTPd
NameBased Site
html docs in site/var/www/html
anonymous ftp root is site/var/ftp


An anonymous user logs into the machine with username/pass of anonymous@site and is dumped in site/var/ftp. So I removed /var/ftp/pub and made a symbolic link:

pub -> site/var/www/html

I chown to be root/root like the previous /var/ftp/pub but when i login anonymously the symbolic link still doesn't reference. In fact, it doesn't show up in the ftp client at all. What can I do to get around this ? Do i have to put the contents of /var/www/html into /var/ftp/pub and do a sybmolic link:

html -> site/var/ftp/pub

? ? ?

I've got a user that has over 3GB of mp3 dj sets and they need them accessible by both HTTP and anon FTP.

Thanks for any help on this. If this is a total newbie question, well the nomenclature under my handle is most appropriate ;)

important
05-03-2002, 03:03 PM
How you symlinked it ?

Try this way :
For example the site admin is 15 or have a domain.com as a domain.

In -s <<the directory which has to be symlinked>> <the directory in which it has to be linked>>

ex :

In -s /home/virtual/site15/fst/var/www/html /home/virtual/site15/fst/var/ftp/pub

This should work i think. try and keep me updated.

5angle.com
05-03-2002, 05:30 PM
i had originally had it linked through the existing sym links created by ensim. i changed to the file system paths as you suggested as so:
[root@twilo ftp]# pwd
/home/virtual/site21/fst/var/ftp
[root@twilo ftp]# ls -l
total 12
drwx--x--x 2 root root 4096 Apr 18 15:40 bin
drwx--x--x 2 root root 4096 Apr 18 15:40 etc
drwxr-xr-x 2 root root 4096 Apr 18 15:40 lib
lrwxrwxrwx 1 root root 37 May 3 14:05 pub -> /home/virtual/site21/fst/var/www/html
[root@twilo ftp]#
but still get prob when i login via ftp:ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
bin
etc
lib
226 Transfer complete.
ftp: 15 bytes received in 0.04Seconds 0.38Kbytes/sec.
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
drwx--x--x 2 ftp ftp 4096 Apr 18 22:40 bin
drwx--x--x 2 ftp ftp 4096 Apr 18 22:40 etc
drwxr-xr-x 2 ftp ftp 4096 Apr 18 22:40 lib
lrwxrwxrwx 1 ftp ftp 37 May 3 21:05 pub -> /home/virtual/site21/fst/var/www/html
226 Transfer complete.
ftp: 281 bytes received in 0.03Seconds 9.37Kbytes/sec.
ftp> cd pub
550 pub: No such file or directory
ftp>now when i looked at the html dir:[root@twilo www]# pwd
/home/virtual/site21/fst/var/www
[root@twilo www]# ls -l
total 4
drwxr-xr-x 2 admin21 admin21 4096 May 3 13:57 html
[root@twilo www]#i noticed the owner/group permissions on the dir... could this be causing the problem? Perhaps ftpPROd can't access the dir because of these permissions? I'm at a loss *shrug*

important
05-04-2002, 01:00 PM
I thought of the chown permission problem. Who was set the owner for the pub directory before ?

Set the same owner for www/html ..

chown root:root /home/virtual/site21/fst/var/www/html

I hope it will work :rolleyes: I have never used anonymous ftp myself.

5angle.com
05-13-2002, 07:52 PM
i tried changing the user:group to the same as the /html dir but it was a no go. is there someone out there who understands the ipersonation of authentication by ftpd pro ?