How to manage file permissions when php plugin netbeans uploads file from FTP

Whenever netbeans delays ftp loading, files are downloaded with permissions set to 640. This causes PHP to cause the following error:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/Library/WebServer/Documents/notes/index.php' (include_path='.:/usr/local/php5/lib/php') in Unknown on line 0

While I can clear it fast chmod o+r ./*on the command line, it forces netbeans to re-synchronize the entire project the next time I click run, which in turn sets the permissions to 640.

I need a way to make netbeans upload files with permissions set to 644.

+4
source share
4 answers

, " " " " > " ", .

+8

, netbeans. ftpd .

ftpd.conf /etc/ :

umask all 022
+3

vsftp.conf :

# Default umask for local users is 077. You may wish to change this to 022,
local_umask=022

, / .

+3

, , , . , .

enter image description here

0

All Articles