1753506 Members
5359 Online
108794 Solutions
New Discussion юеВ

vsftpd access

 
nanoux
Advisor

vsftpd access

using RHEL 3.0 vsftpd server :
question:
how to set permissions so that a user can upload/download and read files, but they can't DELETE files or edit them
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: vsftpd access

Shalom,

Pretty much can't do that.

If they have write access to the directory to create (upload) files then they can delete files as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: vsftpd access

Probably, you could use:

cmds_allowed
local_umask
anon_umask

If you disallow the DELETE command, the user will be able to updload but not delete the file. But if the user can upload and overwrite the file, you won't be able to control the file "edition". So, you must prevent read access to the file after uploaded, use the *_umask parameters.

Don't forget to assing points.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven Schweda
Honored Contributor

Re: vsftpd access

> Pretty much can't do that.

It depends. The UNIX file system may not
distinguish between (over)write and delete
access, but an FTP server may do more. I
know nothing about vsftpd, but the standard
HP-UX FTP server allows some finer control,
at least for anonymous FTP. See, for
example, the last part of:

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1290628