Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

756 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