Mac OS X has a very annoying habit of creating a .DS_store file in every folder it visits.
This is very annoying in a mixed OS network. So to disable this behaviour for remote drives (Samba, ftp, webdav) you can just enter this at the command line:
$ defaults write com.apple.desktopservices DSDontWriteNetworkStores true
To get at the command line (Terminal) you find it in /Applications/Utilities/Terminal.app
Beware though that it is the .DS_store that finder uses to decide on file location when in grid view and stores the notes on files in there as well. So these features (Notes and rearranging the icons) will be reset every time you leave the folder.
Sources 1 2