LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-24-2003, 02:26 AM   #1
lzyking
Member
 
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, 05:35 AM   #2
keevitaja
Member
 
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, 09:39 AM   #3
Crashed_Again
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, 07:47 AM   #4
rewt
Member
 
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.

Rewt

Last edited by rewt; 02-25-2003 at 07:53 AM.
 
Old 02-25-2003, 12:58 PM   #5
MasterC
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 ~
to
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).

Cool
 
  


Reply


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 11:02 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 04:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 02:38 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 01:29 AM
ownership of /var/www/html haobaba1 Linux - Security 1 08-04-2003 02:58 PM


All times are GMT -5. The time now is 04:26 PM.

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