Hi,
I'm using Ubuntu 11.04 to access a server via SFTP in Nautilus. If I open a PHP file and then save it, the permissions and owner are modified!
For example, if I have /var/www/index.php on my server (192.168.1.2) and I do the following:
1. Open Nautilus.
2. Press CTRL + L.
3. In the address bar enter: sftp://192.168.1.2/var/www/
4. Double click on index.php to open it with GEdit.
5. Make some changes to index.php.
6. Save index.php.
the result is the permissions for index.php are modified, and the owner is changed from www-data to my username.
Is there any way to preserve the original owner of the file and file permissions?
Thanks in advance.

Reply With Quote

