Tag Archives: FTP

Symblic links in FTP

Actually there is no way to use symbolic links in FTP. A workaround is to mount the folder with the bind option. For example, i have a jailed FTP account and i want to allow it to access the /tmp/eureka folder.

1. Create the mount point folder in the user home directory.

mkdir /home/<username>/eureka

 

2. Mount the /tmp/eureka folder with the bind option.

mount --bind /tmp/eureka /home/<username>/eureka

 

Done =)

Reference: vsFTPd and Symbolic Links

Ubuntu – Setup Jailed FTP user account in vsftpd

1. Edit /etc/vsftpd.conf as follow.
/etc/vsftpd.conf

chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

 

2. Create the /etc/vsftpd.chroot_list and enter the usernames which you want to jail.
/etc/vsftpd.chroot_list

userA
userB
userC
...

Continue reading Ubuntu – Setup Jailed FTP user account in vsftpd