[Ilugc] Cannot Write in FTP

  • From: steve@xxxxxxxxxxxx (steve)
  • Date: Thu Sep 30 16:09:18 2010

Hi,

On 09/30/2010 10:22 AM, Zico wrote:

Hi, I have just installed a FTP server for providing some files among my
students. I want to set permission in such a way that:

  (1) Anonymous user can read / copy the file but no write permission
  (2) My students who will login with their ID, will able to read / copy and
*even write in that FTP* site.

My server is CentOS 5. And, I am using vsftpd for this purpose. I am
providing my vsftpd-anon.conf file here for your kind information:

*#
# Sample anonymous FTP server configuration
#
# Mandatory directives
#
listen=YES
local_enable=YES
anonymous_enable=YES
write_enable=YES
local_umask=077
anon_upload_enable=YES

This ^^^^ is not consistent with your requirement to have read only access for 
anonymous user. What exactly do you mean by 'Anonymous' can 'copy' ?

Anyways, here is a nice article that might help:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch15_:_Linux_FTP_Server_Setup#The_vsftpd.conf_File

If you still have problems, it might help to know what exactly happens (or does 
not happen as expected) along with the current configuration.

In any case, you should consider creating a complete read-only ftp server with 
users using scp to copy files instead of ftp, since that is more secure.

cheers,
- steve

-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/

Other related posts: