I have a project with a number of files that I created in Linux.
And I needed to give another user write permission on them. So I created a "dev" group of which he and I are members and changed the ownership of the files to this group.
A typical file now has these permissions :
-rw-rw-r-- 1 phil dev 5617 Jul 14 15:45 profile.html
However, when I edit the file profile.html it reverts to me like this, and my colleague loses the ability to edit.
-rw-rw-r-- 1 phil phil 5617 Jul 14 15:45 profile.html
How do I avoid it reverting like this? Was changing the ownership the wrong thing to do? Or was it done with the wrong options? Or is this to do with my editor (emacs) configuration?