LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2004, 11:48 AM   #1
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Rep: Reputation: 15
apache/proftp


I have installed Apache and Proftp. I just started with them, but I want to make this quetions.
My apache server address is 192.168.1.5 and there is index.html-page in /var/www/html/rogk. So if I put the Firefox search line "192.168.1.5/rogk" the index.html-page open ofcourse.
The question is, how do I have to configure the "/etc/proftpd.conf", that when "rogk" logs in ftp, the opening folder is /var/www/html/rogk? I think that's how the webservers work, or is it?
I hope this wasn't a stupid question. Because I'm newbie and finnish is my main language, the man pages are little bit difficult to me,but I'm learning more all the time.
 
Old 06-23-2004, 12:27 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Most ftp clients have options to set the folder when you login. If your's does not then you can set that directory up as the user's home directory so long as it isn't used for anything else.
 
Old 06-23-2004, 01:46 PM   #3
scuffell
Member
 
Registered: Jun 2004
Location: Reading, UK
Distribution: SUSE 9.1, SUSE 9.2, SUSE 9.3, Knoppix 3.8, Gentoo 2005.0, cygwn, colinux
Posts: 100

Rep: Reputation: 15
With proftpd, the user rogk home has to be /var/www/html/rogk (edit it in /etc/passwd). Then in /etc/proftpd.conf uncomment the line that says:

DefaultRoot ~

Then restart proftpd with proftpd restart, and you should be able to log in using rogk and it will chroot into the directory.
 
Old 06-23-2004, 02:51 PM   #4
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Original Poster
Rep: Reputation: 15
Great answer

Thank you very much scuffell. That's the thing I meant.

Last edited by rogk; 06-24-2004 at 01:28 AM.
 
  


Reply



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
apache/proftp test server technochef Linux - Software 0 10-05-2004 10:06 PM
Help getting started with Apache and Proftp jimhe Mandriva 5 08-18-2004 12:04 AM
proftp Joey.Dale Linux - Networking 14 12-15-2003 03:20 PM
ProFtp bnumark Linux - Software 5 06-28-2003 03:36 PM
ProFTP KillerCheeto Linux - Newbie 6 11-10-2002 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:29 AM.

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
Open Source Consulting | Domain Registration