Solved

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

Posted on 2006-10-27
2
464 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

777 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