On Ubuntu I've made my user's Public folder an SMB share (using the same user as the smbuser) - I've then mapped it as a network drive on Windows XP.
I can edit, from Windows, any file on the share, but whenever I do it changes the permissions - it keeps owner permission but resets group and everyone permissions to read-only.
e.g. file is 777, I save it on the Windows side and now it's 744.
Is there anyway to stop this happening?