ใช้ FTP ของอะไรครับ ถ้าใช้ Vsftpd ก็ Config ตามนี้
1. เข้าไปแก้ไข File Config
vi/etc/vsftpd/vsftpd.conf
2. เพิ่มคำสั่งเหล่านี้
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=0002
anon_upload_enable=YES
anon_mkdir_write_enable=YES
file_open_mode=0777
3. แก้ไขเสร็จแล้ว ก็สั่ง Rastart Service
service vsftpd restart
4. คำอธิบาย ผมขี้เกียจแปล
Here, file_open_mode sets the default setting of files. 777 makes it readable, writeable and executable for anyone. With local_umask set to 002, this gives you 775, as you requested.
Notica that local_umask defaults to 077, disabling groups and others to access files in any way (hence it is set here).