Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
proftpd and symbolics links, also need better user config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Sep 21, 2004 8:08 am    Post subject: proftpd and symbolics links, also need better user config Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Sep 21, 2004 8:13 am    Post subject: Reply with quote

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
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Sep 21, 2004 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Sep 21, 2004 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Sep 21, 2004 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Sep 21, 2004 3:49 pm    Post subject: Reply with quote

jonfr wrote:
I don't think bind is an good option, maybe virtual folder may be an solution.. :?:


If you know of any other methods of accessing files outside of a chroot, by all means let me know.

It works fine for me anyhow - and the security on the filesystem is the same AND controlled by the ftp server.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Sep 21, 2004 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Sep 21, 2004 7:43 pm    Post subject: Reply with quote

*? "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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum