View previous topic :: View next topic |
Author |
Message |
jonfr Veteran
Joined: 20 Jul 2003 Posts: 1008 Location: Denmark
|
Posted: Tue Sep 21, 2004 8:08 am Post subject: proftpd and symbolics links, also need better user config |
|
|
Is there any way to make sybolics links work whit proftpd, i have been trying but the links just don't show up.
I need to share stuff over ftp that are on many hard drives and mounting the hole drive to the ftp folder is not an option.
I also need an better user config. This is how my current user config part looks like.
Code: | <Anonymous /home/jonfr/ftp>
User jonfr
Group wheel
AnonRequirePassword on
HideUser root
HideGroup root
<Directory /home/jonfr/ftp/upload>
<Limit STOR>
AllowAll
</Limit>
</Directory>
<Directory /home/jonfr/ftp>
<Limit READ>
AllowAll
</Limit>
</Directory>
|
I have to do this whit every user and re-start the server every time (lucky form me, they are not many). I did go trugh the basic sample, but i didn't see any solution on this. I also found the help on proftpd.org be confusing. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
jonfr Veteran
Joined: 20 Jul 2003 Posts: 1008 Location: Denmark
|
Posted: Tue Sep 21, 2004 11:33 am Post subject: |
|
|
UberLord wrote: | How about replacing the username with a *?
Works for apache, may work for proftpd
For the symbolic links - I notice that they never show up when using IE and a FTP client, but do for all other clients.
If the link is outside the chroot area then you have to mount --bind it instead |
It is worth the try replacing the username whit *?, but i don't know about the symbolic links, and the links go to /mnt/hard-drive/ |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Tue Sep 21, 2004 12:57 pm Post subject: |
|
|
jonfr wrote: | but i don't know about the symbolic links, and the links go to /mnt/hard-drive/ |
As I doubt you'll be having ftp accounts inside the /mnt area, you need to use mount --bind instead of symlinks. Here's an example
Code: | mount --bind /usr/portage/distfiles /home/ftp/gentoo/distfiles |
I have that command in my /etc/conf.d/local.start
I allows me to download my servers distfiles to other gentoo clients on my LAN _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
jonfr Veteran
Joined: 20 Jul 2003 Posts: 1008 Location: Denmark
|
Posted: Tue Sep 21, 2004 1:08 pm Post subject: |
|
|
UberLord wrote: | jonfr wrote: | but i don't know about the symbolic links, and the links go to /mnt/hard-drive/ |
As I doubt you'll be having ftp accounts inside the /mnt area, you need to use mount --bind instead of symlinks. Here's an example
Code: | mount --bind /usr/portage/distfiles /home/ftp/gentoo/distfiles |
I have that command in my /etc/conf.d/local.start
I allows me to download my servers distfiles to other gentoo clients on my LAN |
I don't think bind is an good option, maybe virtual folder may be an solution.. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
jonfr Veteran
Joined: 20 Jul 2003 Posts: 1008 Location: Denmark
|
Posted: Tue Sep 21, 2004 7:30 pm Post subject: |
|
|
I guess bind is the way i have to go, been looking around for options. I didn't find any.
So now i have to figure out how to put this into fstab and make it work. Bind that is... |
|
Back to top |
|
|
jonfr Veteran
Joined: 20 Jul 2003 Posts: 1008 Location: Denmark
|
Posted: Tue Sep 21, 2004 7:43 pm Post subject: |
|
|
*? "fix" creates an problem. When i use that, i end in /home/jonfr not /home/jonfr/ftp (that is / when users log in) and other users just end up in there home folder.
I've come up whit an idea to fix this, i will use pureftpd and mount bind option to connect the users files to the correct folders, problay by using virtual user option in pureftpd. |
|
Back to top |
|
|
|