FTP from a web browser
Hi Linux gurus,
I have set up a web browser and I would like to add an ftp hyperlink to a couple of directories. As of right now, I can only do this for /var/ftp/pub, where do I go to add other directories? So far, I am able to put this in my web browser and it'll display the directory and anyone can download anything they want: ftp://<ip address>/pub Now I want them to access a directory that is not under /var/ftp/ Thanks for all your help! |
Sorry.. this is what I'm running:
RHEL 6.2 (Santiago) Linux version 2.6.32-220.el6 gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) |
|
Quote:
Are you using vsftpd? Give proper permission to parent directory so no one can open them. It will show access forbidden error. OR Put a filename index.html in your all parent directories so no one can see the content of the directories. |
eklavya,
My apologies... yes, a webserver. Yes, I am using vsftpd. I'm not sure what you mean... I want everyone to have access to be able to see everything under directories that I list. For example, if I provide a link on my website: ftp://<ip address>/videos and ftp://<ip address>/pictures What do I need to do to add these directories so that they can be accessible? /stuff/videos and /stuff/pictures Right now /var/ftp/pub is the only directory available... |
I can create two folders: /var/ftp/pub/videos and /var/ftp/pub/pictures and dump the contents from /stuff/videos and /stuff/pictures, but I was wondering if there was a file that I could update to simply add /stuff to.
Maybe its not available? |
Quote:
To make them permanent, add them in fstab |
Sorry mddesai,
I did see them, but I wanted to avoid bind mounts... maybe its the only way :-/ |
Quote:
|
Oh, no... don't get me wrong. I use them too.
I just was wondering if there was a .conf file somewhere that I didn't know about that I could specify what directories I want ftp access to. Thats all. Bind mounts are fine... I have updated my fstab to add the following: # Bind Mounts for odcdocs FTP access /Userguides/videos /var/ftp/pub/videos none bind 0 0 /Userguides/pictures /var/ftp/pub/pictures none bind 0 0 Thanks for your input with this... |
Quote:
|
All times are GMT -5. The time now is 07:47 PM. |