This question already has an answer here:
- File permissions and saving 2 answers
If i edit the file from a remote server via text editor (geany, sublime text..etc) locally, the file user and group will changed to the logged user.
Let say if I accessing the remote file with root user (using caja file manager)
Before root user edit: file member:admin
After root user edit: file root:root
How do I prevent this?
UPDATE If I edit the files remotely with VIM, the owner and group remain the same. So, I think maybe it is related to the text editor??