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


Click here to return to the 'Quicker shell command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Quicker shell command
Authored by: vasi on Jan 03, '02 06:45:49AM

This should go a bit faster from the command line prompt:

sudo find / -name .DS_Store -user root -print0 | sudo xargs -0 chown vasi

Replace "vasi" with your username, of course. The print0 and -0 flags work quite nicely together on a system like OS X that's full of spaces in filenames.



[ Reply to This | # ]
Quicker shell command
Authored by: zadig on Feb 04, '02 09:26:01PM

That works well, and thanks for putting me on the right track, but you don't need to change the owner or the group. Instead just add write privileges to the group that the .DS_Store files already belong to (Admin). If you're logged in to an Admin account, you're good to change prefs and they'll be remembered.

If you want all users to be able to change the .DS_Store files, add write privileges to the world as well. Here's the modified version of the command that will do this:

sudo find / -name .DS_Store -user root -print0 | sudo xargs -0 chmod go=+w

That should work, and without changing the owner or group.



[ Reply to This | # ]
Quicker shell command
Authored by: uurf on May 07, '02 01:53:45PM

Sorry, what would the command be to "just add write privileges to the group that the .DS_Store files already belong to (Admin)."?

thanks



[ Reply to This | # ]
Quicker shell command
Authored by: uurf on May 07, '02 02:07:28PM

is it this:
sudo find / -name .DS_Store -user root -print0 | sudo xargs -0 chmod g=+w

?



[ Reply to This | # ]
Quicker shell command
Authored by: uurf on May 07, '02 02:55:18PM

thanks man pages - i think this is it - a command to find all the .DS_Store files owned by root and change their group from wheel to admin

sudo find / -name .DS_Store -user root -print0 | sudo xargs -0 chown :admin



[ Reply to This | # ]
how to make new windows remember?
Authored by: bruddahmax on Jul 03, '02 02:55:24AM

new folders create new .DS_Store files with default preferences not set to ADMIN as the user. how can this be changed?



[ Reply to This | # ]
how to make new windows remember?
Authored by: Cobber99 on May 28, '06 03:24:49PM

Indeed - does anyone know how to stop the system from making new directories
with root ownership on the .DS_Store file? It is insanely annoying and any help
here would be much appreciated!



[ Reply to This | # ]
root-owned .DS_Store files
Authored by: sjk on May 28, '06 04:41:17PM
.DS_Store are created with ownership of the current Finder user. If you're seeing root-owned .DS_Store files they've probably been added by running authenticated installers; that's how they've gotten onto my systems anyway. Or you're running Finder as root? :-)

If you're logged in as a non-root user and new .DS_Store files in folders you create with Finder are owned as root then things get tricker. There's no reason to over-speculate about possible causes without more detailed information about your system/environment. Seems better to start with simple explanations.

[ Reply to This | # ]