Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th February 2007, 09:55
john john is offline
Junior Member
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ispconfig and profpt

Problem,

I want to edit the proftpd_ispconfig.conf file.
All the users who can use a ftp-program and login in wil come in their /home/webdir.
But they can also read in all the directory's above.
Normaly the will be jailed in their home directory.

If i edit the conf file below and restart the Proftp deamon, all the new setting will be rewriten.


Where and how can i write the settings to jail the ftp user in their /var/www/webX box with out any read rights in /var/www/ or above.

###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
DefaultAddress 127.0.0.1
<VirtualHost X.X.X.X>
DefaultRoot ~
AllowOverwrite on
Umask 002
</VirtualHost>


I also tried to edit the /etc/proftp.conf to:

DefaultRoot /var/www/web24/

Include /etc/proftpd_ispconfig.conf
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2007, 13:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,579
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

Just add:

DefaultRoot ~

in the file /etc/proftpd.conf. the directive must not be included in a virtual host directive.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th February 2007, 14:45
john john is offline
Junior Member
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default already there

In the Proftp.conf is
DefaultRoot ~

already there.

This wasn't the option.
The ftp user is only webbassed jailed but not with ftp programm.

I hope you will know the answer.
Reply With Quote
  #4  
Old 8th February 2007, 20:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in /etc/proftpd.conf?
Are you sure you use FTP, and not something like SCP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 8th June 2007, 09:51
bplgonzo bplgonzo is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I'm having same issue.

DefaultRoot ~ is already in proftpd.conf and not in Vhosts file
I'm sure I used FTP (WS-FTP, Firefox FTP)

Still having this problem. Anyone knows solution?
Reply With Quote
  #6  
Old 8th June 2007, 09:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,579
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

Please set the documentRoot globally as described in the perfect setup guides in proftpd conf before the include of the vhosts file. It is not nescessary to set the document root in every vhost.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 8th June 2007, 11:00
bplgonzo bplgonzo is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 3
Thanked 0 Times in 0 Posts
Default

proftpd.conf

DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."
Include /etc/proftpd_ispconfig.conf


proftpd_ispconfig.conf

###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
DefaultAddress 127.0.0.1
<VirtualHost XXX.XXX.XXX.XXX>
AllowOverwrite on
Umask 002
</VirtualHost>



Not working properly. Didn't also worked when i had "DefaultRoot ~" in <VirtualHost> in proftpd_ispconfig.conf
Reply With Quote
  #8  
Old 9th June 2007, 11:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What happens when you comment out DefaultAddress 127.0.0.1 in /etc/proftpd_ispconfig.conf and restart Proftpd?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 10th June 2007, 22:21
webcycler webcycler is offline
Junior Member
 
Join Date: Jun 2007
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I was reading this thread, because I had some problems with FTP.
Before installing ISPconfig my FTP is always fast and i can login (using LeapFTP) almost instantly.
But after installing ISPconfig my logging in became very slow (takes 20 seconds te login). Also there are a lot of connection problems when oploading files of while editing files online.

So, by reading this thread, I commented out <<DefaultAddress 127.0.0.1>> in /etc/proftpd_ispconfig.conf and then restarted Proftpd.

Now it is superfast again and connection problems vanished ....

However, restarting proftpd generates a warning:
Starting proftpd: - warning: "ProFTPD" address/port (xxx.xxx.xxx.xxx:21) already in use by "ProFTPD Default Installation"

(xxx.xxx.xxx.xxx is my IP numer)

Who can shine a light on this?
Reply With Quote
  #10  
Old 10th June 2007, 22:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,579
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
 
Default

Please post the content of the /etc/hosts file of your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.