Writing a file from a Windows XP machine resets the W permissions flag

Asked by Kim Lyon

I have a project built under Windows on a Windows XP machine . I am porting the project onto Ubuntu Linux . If I modify a file on the Windows XP machine and then update the file on the Ubuntu Linux machine , using Beyond Compare , the W permission flags for Group and for Others for the file are reset on the Ubuntu Linux machine . This means that the next time the file is copied over the flags have to be set before the copy can proceed .

Any ideas ?

Many Thanks

Kim Lyon

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kim Lyon
Solved:
Last query:
Last reply:
Revision history for this message
George Standish (george-standish-deactivatedaccount) said :
#1

Windows (any version) does not understand Linux (or Unix in general) file permissions. If you modify the file in Windows, the permissions will be lost or altered. I don't think there is any way around this.

Best of luck,
George

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#2

Actually.... there is a way around this.

Windows shares its folder with the CIFS protocol which does NOT contain unix type permission. If you share the folder with the NFS protocol it WILL have unix type permission.

For Windows XP you will need to download and install Windows Services for Unix Version 3.5 from the Microsoft Download Center.

For Windows Vista or Windows7, NFS support is included with the OS. It is not be enabled by default so you will need to go to add/remove windows components and select the NFS tickbox.

Hope this helps

Revision history for this message
Kim Lyon (kim-lyon) said :
#3

Many Thanks