Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent .ds_store creation across multiple user accounts Network
At work, we needed a solution to the .DS_store "problem," since 90% of our clients are Windows boxen. The previously posted solution to prevent .DS_store creation on networked drives only worked for one user account. However, it turns out its fairly easy to configure an OS X client to apply the setting for any user who logs in.

You just need to run this command...
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
...under a single account, then copy the created plist to /Library/Prefrences. Here's an example of how to do it step by step. Open up Terminal and type the following (the $ is just the prompt; don't type that):
$ defaults write com.apple.desktopservices DSDontWriteNetworkStores true
$ cp Library/Prefrences/com.apple.desktopservices.plist \
/Library/Prefrences/.
$ sudo chmod 777 /Library/Prefrences/com.apple.desktopservices.plist
Then reboot, and you should be done.
    •    
  • Currently 1.80 / 5
  You rated: 1 / 5 (5 votes cast)
 
[28,968 views]  

Prevent .ds_store creation across multiple user accounts | 8 comments | Create New Account
Click here to return to the 'Prevent .ds_store creation across multiple user accounts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent .ds_store creation across multiple user accounts
Authored by: digitaltvguy on Dec 06, '05 07:17:05AM

Preferences was mis-spelled in the path

---

-Chris



[ Reply to This | # ]
Prevent .ds_store creation across multiple user accounts
Authored by: stang7423 on Dec 06, '05 07:29:30AM

That command could just be:

defaults write /Library/Preferences/com.apple.desktopservices DSDontWriteNetworkStores true

That will create/modify the com.apple.desktopservices.plist in the Library Folder without having to move it from your user preferences directory and change permissions.



[ Reply to This | # ]
Removable Media Fix?
Authored by: reece146 on Dec 06, '05 07:46:04AM

Is there a way to disable .DS_Store and .Trash on removable media like CF, SD, etc.?

My workaround has been to cp the content to a folder on the desktop without opening the mounted CF card on the desktop. Same for emptying (rm -r /Volumes/NO NAME/*).

Needless to say, cumbersome.



[ Reply to This | # ]
Removable Media Fix?
Authored by: simbalala on Dec 06, '05 08:37:43AM

BlueHarvest does this nicely.

http://www.zeroonetwenty.com/blueharvest/



[ Reply to This | # ]
Prevent .ds_store creation across multiple user accounts
Authored by: beccles on Dec 06, '05 03:21:08PM
Hmm, a bit of potential plagiarism here.
Seems awfully similar to an Apple Knowledge Base article :-)

[ Reply to This | # ]
Prevent .ds_store creation across multiple user accounts
Authored by: jacobolus on Dec 06, '05 04:25:26PM

You mean the knowledge base article that was the cause of the original hint linked to by this one? (The original hint goes something like: "according to this knowledge base article...") ;-)



[ Reply to This | # ]
Prevent .ds_store creation across multiple user accounts
Authored by: charlietuna on Dec 07, '05 04:07:08AM

This is a tedious way to solve a problem. If the problem is that .DS_ files are being written to a network server, tell the network server to veto those files.

For samba, look at the man page for smb.conf and review the veto files parameter. You'll also need to consider how to handle the deletion of folders which ONLY contain a vetoed file, and there's a samba configuration parameter for that too.



[ Reply to This | # ]
Prevent .ds_store creation across multiple user accounts
Authored by: taxi on Dec 08, '05 10:40:08PM

That implies you have access to the server to configure it. Or a sysadmin who won't just tell you to "Use a PC"



[ Reply to This | # ]