You are not logged in.

#1 2008-12-26 18:37:34

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

[SOLVED] vsftpd read only

How can I set read only access rights for user when he logs in through FTP? I'm using vsftpd.

Last edited by kdemon (2008-12-26 20:21:12)

Offline

#2 2008-12-26 20:04:07

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] vsftpd read only

Add "write_enable=NO" to /etc/vsftpd.conf (I think it's the default setting actually, so if you just leave the line "write_enable=YES" commented, it should have the same effect).
You can also set read-only permissions with chmod (directories need to be executable though).

See "man vsftpd.conf" for more information.

*edit*
I've just checked and it is the default setting, so as long as you don't add the line "write_enable=YES" to vsftpd.conf, users won't have write permissions

Last edited by Xyne (2008-12-26 20:05:32)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2008-12-26 20:17:06

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

Re: [SOLVED] vsftpd read only

Thanks, I missed "write_enable" line out.

Offline

Board footer

Powered by FluxBB