Solved

Setting up remote authenticated FTP access to /var/www/ on Fedora 5.0

Posted on 2006-10-27
2
465 Views
Last Modified: 2013-12-06
Not knowing too much about Linux I have set up a web server on Fedora 5.0., That was easy.

I need to upload/download/delete the web content with ftp remotely with a single username/password.   (just like every commercial web hosting service)  I know it's not secure and their are better options, but that's OK.

Question 1 - - - After starting vsftp, read access to a "pub" folder is enabled by default, but I can't even find "pub" in the file system.  What is the file system path to "pub" ?

Question 2 - - -How to I get the ftp server to point to /var/www/ ?  Paths are not part of the vsftpd.conf setup file
0
Comment
Question by:swbruce21
2 Comments
 

Author Comment

by:swbruce21
ID: 17821088
OK, I found the PUB directory, so that leaves question 2

Question 2 - - -How to I get the ftp server to point to /etc/www/ ?  Paths are not part of the vsftpd.conf setup file
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 250 total points
ID: 17824684
hi

the default path of the vsftpd is defined in /etc/passwd file.  the pub that you are seeing is in /var/ftp/pub

change the file /etc/passwd and where it reads

ftp:x:...:...:/var/ftp/:/sbin/nologin to read like

ftp:x:...:...:/var/www:/sbin/nologin

please remember that the "..." that i have given is some number in the file change the "/var/ftp" to "/var/www/" or whatever directory that you want it to be pointed.

however it is not a good idea to have it in this manner as anyone who does an anonymous ftp to your website would see all the files.

instead create a user whose home directory would be /var/www

if you are using Internet Explorer to access the ftp folders, then you can click on FILE in the menu bar and select LOGIN AS to give a user name and password.

or if it is mozilla or some other browser, then you can try ftp://username@host.name.com to see a diaglog box appearing by default prompting you for the password which is a safer way to handle things.

goutham

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question