Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"deny file-write-create"-errors in log system.log

Hi,


since I upgraded Lion I got tons of these messages in my logs:


Jul 25 21:11:58 neptun sandboxd[5347] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.XTJXHr4

Jul 25 21:12:29 neptun sandboxd[5348] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.86EVSpI

Jul 25 21:12:59 neptun sandboxd[5349] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.CJaoJoj

Jul 25 21:13:30 neptun sandboxd[5350] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.ZGxllUy

Jul 25 21:14:00 neptun sandboxd[5351] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.NApWQdS

Jul 25 21:14:31 neptun sandboxd[5352] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.w1isGGi

Jul 25 21:15:02 neptun sandboxd[5361] ([4420]): Preview(4420) deny file-write-create /Users/user/Library/Preferences/ByHost/.GlobalPreferences.146446A7-88D0-5241-85 F7-F6FDD0201B5F.plist.TC4h3SQ


So this is just Preview adding this every 30 seconds to the logs. Similar errors occur, for example, when Spotlight indexes movies.


Does anyone have an idea what is causing this and how to fix it?


Thanks,

Stefan

MBP Late 2008, Mac OS X (10.6.2)

Posted on Jul 25, 2011 12:23 PM

Reply
23 replies

Jul 27, 2011 6:51 AM in response to kra_ste

Mine looks like this:


drwx------ 251 stefan staff 8534 27 Jul 15:29 ByHost


And the first few lines look like this:


drwx------+ 763 stefan staff 25942 27 Jul 15:41 .

0: group:everyone deny delete

drwx------@ 60 stefan staff 2040 25 Jul 09:27 ..

0: group:everyone deny delete


But as I said in my initial post, such errors do not only appear for the ByHost folder. It happens for various preferences, for example, when Spotlight indexes a M4V movie and tries to create/access a codec property file. Or here are some other examples when Safari is running:


sandboxd[4159] ([4152]): Safari Webpage P(4152) deny file-read-data /Users/stefan/Library/Preferences/com.apple.DownloadAssessment.plist

Jul 27 12:41:16 neptun sandboxd[4183] ([4182]): Safari Webpage P(4182) deny file-read-data /Applications/Safari.app/Contents/Resources/Defaults.plist

Jul 27 12:41:16 neptun sandboxd[4183] ([4182]): Safari Webpage P(4182) deny file-read-data /Applications/Safari.app/Contents/Resources/English.lproj


Thanks!

Jul 27, 2011 8:32 AM in response to kra_ste

Here's one more:


sandboxd[5432] ([5427]): mdworker(5427) deny file-write-create /Users/stefan/Library/Preferences/com.cod3r.a52codec.plist.imarlP7 (Importing type 'com.apple.m4v-video' using 'file://localhost/System/Library/Spotlight/CoreMedia.mdimporter/' - diagnostic:0 - find suspect file using: sudo mdutil -t ...)

Aug 16, 2011 8:46 PM in response to Barney-15E

For what it's worth, I'm getting those errors too. Mine are sandboxd based and hit through either Safari trying to write to /private/vars/folders/zz


I am also getting a lot of reports of buffer allocation zero.


Here's the detail from the sandboxd out:


mds(68) deny file-write-create /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T



Process: mds [68]

Path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Support/mds

Load Address: 0x106592000

Identifier: mds

Version: ??? (???)

Code Type: X86-64 (Native)

Parent Process: launchd [1]



Date/Time: 2011-08-16 22:45:26.988 -0500

OS Version: Mac OS X 10.7 (11A511)

Report Version: 7

May 24, 2012 11:50 PM in response to maxcasal

Are you using a username originally created in Tiger and migrated through different versions of OS X?

Yes I am, and I am having these issues alot.


My username was actually created in 10.0.


I migrated through many 10.x's. 😀


When I came to Lion, when I first updated, my user account was not there at all. So I had to add it manually by creating a new user and pointing it at the old user directory. What would that have done?


Oh yeah. I also changed my user's UID in Directory Utility so it would match the one on my laptop and I could access files between the machines without permissions issues. Was that bad to do?

Aug 23, 2012 8:06 PM in response to Leopoldnak

Getting the following errors in console log after I upgraded to 10.8 on a client machine


error message code


sandboxd[6634]: ([6449]) Mail(6449) deny file-write-create /path


I have creted a symbolic link to the location of the mail folders off to another hard drive. Worked fine in 10.7, looks like this is no longer supported.


Mail can't seem to create new folders, or if they are already there the IMAP folders convert to Read-Only

Oct 7, 2012 9:09 AM in response to ossapha

Thanks for the hint: I upgraded to Mountain Lion (10.8.2) today ... since then I had two new "features" (among different others!):

- Mail.app aborted every now and then

- Mails from an Exchange server were "read only" (no remove/no move possible)


Just found this discussion here by googling for "sandboxd ...: Mail(...) deny file-write-unlink .../Posteingang.mbox/".


The directories were actually a symlink from ~/Library/Mail/V2 to a second hard disc since I wanted my external emails on some other disk which worked perfectly well under 10.7 (Lion). However, moving back the folder to the "right" place solved the two issues (at least until now).


Cheers,

Gerd

"deny file-write-create"-errors in log system.log

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.