Originally Posted by deep27ak
It would be better if you show with the help of commands and the output which you are getting relatively.
And while posting commands use code tags
Ok I shall try and explain in a simpler way.
File1 in Folder1 on a Windows box has an owner of User1.
When File1 is saved to or copied to folder2 on the Linux servr the ownership and permissions are changed to User2.
Once File1 was on the linux box with the now incorrect permissions I ran the command:
File1 then had the correct permissions set.
Opening File1 on the Windows machine from Folder2, editing it and trying to save back resulted in the error: Unable to overwrite file, read only (or something similar)
Checking permissions on File1 - It was not set to read only.
I then ran the following command:
I then opened File1 again from the Windows machine, edited and saved the file without error.
Once save I then Checked the permissions on File1 to find that after saving they had been set back to User2.
Just to add, we have two servers setup, one live and one test server, this happens on the live server but works perfectly on the test server.
I hope that makes it a little clearer?