Hi all,
I mount remote directories from my webservers to my desktop running GNOME (the "Connect to server" command in Nautilus) so that I can edit config files and the like in gedit, which is extremely convenient.
In a terminal, if as root you edit a file belonging to, for example, "www", the owner remains the same. But via sftp, root becomes the owner. This obviously causes all kinds of unexpected problems for Apache etc.
I have been looking in the sshd_config man page but I don't see a setting that might affect this.
Is this ownership thing inherent to sftp? Is the only solution logging in as the same user as Apache?
I mount remote directories from my webservers to my desktop running GNOME (the "Connect to server" command in Nautilus) so that I can edit config files and the like in gedit, which is extremely convenient.
In a terminal, if as root you edit a file belonging to, for example, "www", the owner remains the same. But via sftp, root becomes the owner. This obviously causes all kinds of unexpected problems for Apache etc.
I have been looking in the sshd_config man page but I don't see a setting that might affect this.
Is this ownership thing inherent to sftp? Is the only solution logging in as the same user as Apache?