Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-24-2003, 03:26 AM   #1
Registered: Dec 2002
Posts: 74

Rep: Reputation: 15
how to setup ftp user's diretory as /var/www/html

I want to setup a ftp in order to transfer file in /var/www/html which is the root file in apache , how to do it
Old 02-24-2003, 06:35 AM   #2
Registered: Aug 2002
Location: Estonia
Distribution: XP PRO
Posts: 119

Rep: Reputation: 15
i am not sure what you are after, but users home directorys are located in /etc/passwd
Old 02-24-2003, 10:39 AM   #3
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
More info please. Do you want everyone to be able to ftp to your /var/www/html?(I hope not) Why do you need people to be able to ftp to your web server? How many users need this access?
Old 02-25-2003, 08:47 AM   #4
Registered: May 2001
Posts: 44

Rep: Reputation: 15
what FTP server are you using?

I am sure this varies with different server software.

A Thought just came to mind. Why dont you just give the user group write access that needs to FTP to that Directory and then set your FTP program remote folder for /var/www/html and then upload away.

again I dont know what server software you are using but with proftpd I have all my users chrooted with this directive:
DefaultRoot ~
To get past that with one user you can add this line to your /etc/proftpd.conf

DefaultRoot ~ !user

This says everyone is chrooted but not user.

Hope this has helped in some way.


Last edited by rewt; 02-25-2003 at 08:53 AM.
Old 02-25-2003, 01:58 PM   #5
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Along with the defaultRoot ~ (or the version of that for your FTP server) you can also make the user's home directories (which is the reason for the default ~) /var/www/html by editing /etc/passwd and changing that user's home directory. However, if you want everyone who ftp's into your box, whether it's anon or not, to have /var/www/html as their home directory, change:
DefaultRoot ~
DefaultRoot /var/www/html

You will have to give alot of permissions to that directory if you go that route(read/execute world, r,w,x group/owner).



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 12:02 PM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 05:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 03:38 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 02:29 AM
ownership of /var/www/html haobaba1 Linux - Security 1 08-04-2003 03:58 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration