so
1. you want the ftpuser to download something via ftp into /backups? or
2. you want the ftpuser to do an ftp upload to your machine's /backups directory?
if its 2 then:
1. set /backups as ftpuser's home directory (man usermod/man chown)
2. jail the user to /backups (meaning user can only access /backups
if using vsftpd, you can edit /etc/vsftpd/vsftpd.conf and set the ff:
chroot_list_enable=YES
chroot_local_user=YES
3. if using selinux:
chcon -t public_content_rw_t /backups/
setsebool -P ftp_home_dir on
so you can do an ftp write to /backups.
and that should be ok after restarting vsftpd.
Last edited by born4linux; 07-22-2009 at 10:23 PM.
|