Why NetBeans ( php – remote project ) change permission of files to 0600?

Posted on

Problem :

I’m using NetBeans for editing some php files ( in a php project ) at remote server.

all go normal, but when saving the edited file using NetBeans, the file’s permissions are set to 0600 by default, making me not able to browse to the file at the remote server till chmod it to 0777 or else.

the main project folder have permissions 0777 and owned to me.
Also the all sub-folders and files under the project’s folder have the same permission 0777.

*This is a private server. So, No problem about having world-writable files.

What is the problem ? And how to get over it ?

I’m using Ubuntu 10.04, NetBeans 6.9 ( Final Edition ).
The Connection to the remote server is via FTP in Passive Mode.

Solution :

Open the project’s properties, select category “Run Configuration”, check “Preserve Remote File Permissions”.

Just ran into this myself.

Leave a Reply

Your email address will not be published. Required fields are marked *