Solved

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

Posted on 2006-10-27
2
467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
list of sudo access for date range 5 38
block mails from a particular country in postfix 7 82
SSH in linux 9 94
RPM creation 6 49
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

710 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