Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th September 2010, 21:03
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default how to show symlinks in pureftpd?

Hello,
does anyone how to make pureftpd show symlinks? i cannot google anything.
I want users to see directory /log which pureftd does not show..

here http://www.pureftpd.org/project/pure-ftpd they say
Symbolic links can be followed when users are chrooted, even when they are pointing out of the chroot jail. This unique feature makes shared content easy to set up.
but i think users are chrooted ?

Last edited by radim_h; 12th September 2010 at 21:06.
Reply With Quote
Sponsored Links
  #2  
Old 13th September 2010, 12:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

According to http://download.pureftpd.org/pub/pure-ftpd/doc/README , you have to use the --with-virtualchroot switch.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
radim_h (13th September 2010)
  #3  
Old 13th September 2010, 13:13
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

Quote:
Originally Posted by falko View Post
According to http://download.pureftpd.org/pub/pure-ftpd/doc/README , you have to use the --with-virtualchroot switch.
i'm really waiting for good old proftpd support in 3.0.4
Reply With Quote
  #4  
Old 14th September 2010, 14:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

If you are on Debian/Ubuntu, you can try this:

Code:
echo "yes" > /etc/pure-ftpd/conf/virtualchroot
(I don't know if it works, I haven't tested it.)
__________________
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 14th September 2010, 15:12
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

this is list of my directories in
root@web2:/etc/pure-ftpd/conf# ls -la
total 72
drwxr-xr-x 2 root root 4096 2010-08-20 11:08 .
drwxr-xr-x 5 root root 4096 2010-07-27 23:27 ..
-rw-r--r-- 1 root root 36 2009-11-07 19:56 AltLog
-rw-r--r-- 1 root root 4 2010-08-17 18:27 BrokenClientsCompatibility
-rw-r--r-- 1 root root 4 2010-08-17 18:27 ChrootEveryone
-rw-r--r-- 1 root root 4 2010-08-17 18:27 DisplayDotFiles
-rw-r--r-- 1 root root 4 2010-07-27 23:36 DontResolve
-rw-r--r-- 1 root root 6 2009-11-07 19:56 FSCharset
-rw-r--r-- 1 root root 4 2010-08-20 11:05 MaxClientsNumber
-rw-r--r-- 1 root root 3 2010-08-20 11:05 MaxClientsPerIP
-rw-r--r-- 1 root root 5 2009-11-07 19:56 MinUID
-rw-r--r-- 1 root root 29 2009-11-08 05:31 MySQLConfigFile
-rw-r--r-- 1 root root 4 2009-11-07 19:56 NoAnonymous
-rw-r--r-- 1 root root 4 2009-11-07 19:56 PAMAuthentication
-rw-r--r-- 1 root root 12 2010-08-19 22:54 PassivePortRange
-rw-r--r-- 1 root root 28 2009-11-07 19:56 PureDB
-rw-r--r-- 1 root root 2 2010-08-19 23:07 TLS
-rw-r--r-- 1 root root 3 2009-11-07 19:56 UnixAuthentication

echo "yes" > /etc/pure-ftpd/conf/virtualchroot

root@web2:/etc/pure-ftpd/conf# /etc/init.d/pure-ftpd-mysql restart
Restarting ftp server: /usr/sbin/pure-ftpd-wrapper: Invalid configuration file /etc/pure-ftpd/conf/virtualchroot: No corresponding directive

this happens also if filename is VirtualChroot, same thing if ChrootEveryone = yes (tried also with this file removed)

Last edited by radim_h; 14th September 2010 at 15:14.
Reply With Quote
  #6  
Old 15th September 2010, 17:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Ok, this doesn't work then. Please delete /etc/pure-ftpd/conf/virtualchroot to make PureFTPd start again.
__________________
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
  #7  
Old 2nd October 2010, 18:59
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

i tried more, virtualchroot Off is wrong, user then can follow link and leave his chroot directory which is bad...
ProFTPD, ProFTPD, ProFTPD, ProFTPD, ProFTPD, ProFTPD, ! .o)

Last edited by radim_h; 12th January 2011 at 07:54.
Reply With Quote
  #8  
Old 27th December 2010, 09:24
shen shen is offline
Junior Member
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

did anyone find a solution for that? As backups ars stored outside the users directories, but are symlinked there, FTP users cannot access their backups right now.

I really need a solution for my users to access their backup files.

Thanks
Stefan
Reply With Quote
  #9  
Old 10th January 2011, 16:07
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

i was stupid, i had VIRTUALCHROOT=yes instead of VIRTUALCHROOT=true
in config


/etc/default/pure-ftpd-common has to look like this :
# Configuration for pure-ftpd
# (this file is sourced by /bin/sh, edit accordingly)

# STANDALONE_OR_INETD
# valid values are "standalone" and "inetd".
# Any change here overrides the setting in debconf.
STANDALONE_OR_INETD=standalone

# VIRTUALCHROOT:
# whether to use binary with virtualchroot support
# valid values are "true" or "false"
# Any change here overrides the setting in debconf.
VIRTUALCHROOT=true

# UPLOADSCRIPT: if this is set and the daemon is run in standalone mode,
# pure-uploadscript will also be run to spawn the program given below
# for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or
# pure-uploadscript(8)

# example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl
UPLOADSCRIPT=

# if set, pure-uploadscript will spawn $UPLOADSCRIPT running as the
# given uid and gid
UPLOADUID=
UPLOADGID=


everything works fine now
Reply With Quote
The Following 2 Users Say Thank You to radim_h For This Useful Post:
falko (11th January 2011), till (10th January 2011)
  #10  
Old 12th January 2011, 08:06
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
 
Default

Just to complete this, someone can use it, passive ports or TLS or whatever

--with-virtualchroot is compiled by default on Ubuntu 10.0.4 LTS and other binary packages, that Ubuntu TLS bug is gone after last update (01/11)

My directory /etc/pure-ftpd/conf - Values inside files
AltLog - clf:/var/log/pure-ftpd/transfer.log
BrokenClientsCompatibility - yes
ChrootEveryone - yes (important!)
DisplayDotFiles - yes
DontResolve - yes
FSCharset - UTF-8
MaxClientsNumber - 200
MaxClientsPerIP - 10
MinUID - 1000
MySQLConfigFile - /etc/pure-ftpd/db/mysql.conf
NoAnonymous - yes
PAMAuthentication - yes
PassivePortRange - 60001 60200 (pickup any range you want, don't forget to set in firewall)
PureDB - /etc/pure-ftpd/pureftpd.pdb
TLS - 1
UnixAuthentication - no

Last edited by radim_h; 19th January 2011 at 10:20.
Reply With Quote
The Following User Says Thank You to radim_h For This Useful Post:
falko (13th January 2011)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-server Setup: package for mail,sql and web/ftp itanium Installation/Configuration 74 1st June 2010 11:01
PHP: Show 3 records from MySQL (exampel: ID: 5 22 87) edge Programming/Scripts 4 12th December 2009 16:52
PureFTPd and MySQL: error exit status 252 marsvin Server Operation 20 13th May 2009 12:03
get pureftpd to show "hidden" files????? Taxick Installation/Configuration 4 7th January 2009 14:18
PureFTPD & Subdirectories iyeat Installation/Configuration 3 18th January 2008 19:14


All times are GMT +2. The time now is 22:41.


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