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


Click here to return to the 'A better suggestion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A better suggestion
Authored by: lincd0 on Jul 03, '07 09:28:34AM

There are some problems with this. First, depending on how you set NSUmask, other users may be able to read the files you create in /tmp. Second, by indiscriminately creating temporary files with predictable names, you're allowing for a possible exploit. Finally, if you use FileVault or otherwise encrypt your /Users directory, you're losing that protection by writing personal data to the root device.

A better solution would be to download the excellent, and free, application Lingon, which will guide you through the process of creating a launchd user agent to delete the temp files when you log in. Take advantage of the features of OS X instead of defeating them with this insecure hack.



[ Reply to This | # ]
A better suggestion
Authored by: davidas on Jul 03, '07 11:00:41AM
Hi. Thanks to you and the original poster! It's timely. I just took delivery of a new HP all-in-one today, so your post sounds like a good point. I downloaded lingon and took a look, only to realize I don't know enough to take advantage of your suggestion for using it. I hope it's not an imposition, but could you give me an orientation tip on what kind of agent or daemon should be constructed? It's important to me because I've had problems before with temp file buildup in MS Office apps, Omniweb and some others and would like to avoid the resulting probs, if possible. Any help is greatly appreciated! All the best, David

---
David Smith

[ Reply to This | # ]

A better suggestion
Authored by: mchagers on Sep 18, '07 01:57:04AM

It's true that this is insecure: if you are paranoid about anyone seeing what you scanned in, then don't use my tip.

However in my case, since I don't allow remote connections, and since whatever I scanned in is usually still lying around on my desk anyway, the point is moot.

I'm also at a loss why using a third party app to clean out a folder is somehow a better way of "making use of Mac OSX built-in capabilities" than using OSX' unix underpinnings to create a symlink.



[ Reply to This | # ]