PPRuNe Forums - View Single Post - Linux Corner
Thread: Linux Corner
View Single Post
Old 23rd March 2010 | 20:34
  #319 (permalink)  
The late XV105
20 Anniversary
 
Joined: Feb 2006
Posts: 594
Likes: 0
From: UK
Restricting FTP folder access on Linux NAS

Cool, thanks mixture!
I will take the bait!

Before then I have a little niggle to solve though; I run Memeo Backup on each PC and laptop on the home network, each backup being written to its own folder on the NAS. Works a treat.

This evening though I installed vsftpd as a small practical project to allow me to share chosen files in a secure way and noticed that the backups were all visible to the User created for secure ftp login. Of course the reason is that the backups are all marked "public" even though they are not explicitly sub folders of the public folder.

My problem is that as soon as I remove the "public" flag, Memeo Backup of course reports "destination not found". Unfortunately it doesn't have a "username and password" option for access to the now secure folder so I can't use one of the Userids that exists on the NAS.

Suggestions for how to achieve a "internally public" and "externally public" structure on the NAS?

For info /etc/vsftpd.conf already has chroot_local_user=YES which I thought was supposed to restrict the User I have created only to the directory I want them to see.

TVM!

BTW - vsftp installed easily, needed only minor "my NAS specific" setup doing, and works a treat.

Last edited by The late XV105; 23rd March 2010 at 20:58. Reason: Added chroot_local_user=YES
The late XV105 is offline  
Reply