[nylug-talk] vsftpd

Michael Bacarella
Tue Nov 28 13:34:54 EST 2006


On Tue, Nov 28, 2006 at 01:30:53PM -0500, Kiryl Hakhovich wrote:
> either this is by design or i'm totally lost...
> 
> vsftpd set up on my end to chroot user once he/she logged in to ftp server.
> In user folder i place file with 644 permissions and owned by  root.
> However user can easily rename and delete the file, when i was expecting
> users will only be able do download that file.
> 
> have been all over man for vsftpd.conf - not much luck.
> i need users to be able to upload files to their folder over ftp but one
> particular file must be only for download.

Delete and rename don't modify inodes, they modify names.

Names are recorded in the directory.  After all, a directory is just
a list of file names -> inode numbers.

Set the permissions on the directory containing the file.

-- 
Michael Bacarella <mbac at netgraft.com>

1-646-641-8662 (cell)

545 Eighth Avenue * Suite 401
New York, NY 10018

http://michael.bacarella.com/
http://netgraft.com/



More information about the nylug-talk mailing list