When I bought my new iMac, I took advantage of this opportunity for a fresh start and created a new, non-administrative account for my daily use. The idea is just additional safety and the inconvenience factor is quite low. For the most part, all that changes is that I actually have to type an administrator name and the password when challenged. For the very few cases where I need sudo access, I either use fast user switching or just open Terminal, su to the administrative user and then issue my sudo command. Easy enough and it makes me feel a little safer.
When I made the switch, I of course had files under the old account. Some were things I knew I'd need immediately, so I copied them to the new account and changed permissions. Others were things I might need, but then again I might not. What to do about those?
Many of them were TextEdit files in the Documents directory. Rather than copying hundreds of files that I might never need, I added extended permissions with OS X ACL's. I figured I'd open them in situ as I needed them.
That rather immediately ran me smack into version trouble.
I'd choose to duplicate the file as suggested, but a few minutes later, I'd get more problems - the same message would pop up as TextEdit's versioning tried to automatically save my changes.
The copied file had correct permissions:
-rw-r--r-- 1 tony apl 2214 Nov 4 11:16 foobar.rtf
So what was causing this?
I knew from Ars Technica that versions are stored in /.DocumentRevisions-V100. But why should that be a problem? The "PerUID" directory should store my versions, right? That's owned by me, so TextEdit should be able to write there on my behalf.
sh-3.2# ls -l total 0 d--x------ 17 tony wheel 578 Nov 4 11:17 502 sh-3.2# pwd /.DocumentRevisions-V100/PerUID sh-3.2# ls -l total 0 d--x------ 17 tony wheel 578 Nov 4 11:17 502
And it does - as long as I am not trying to work on a document in that admin user's directory structure.
This has to be something else. Could it be sandboxing?
TextEdit runs "sandboxed". As explained at this Ars Technica post, this restricts TextEdit:
It doesn't quite make sense to me that this would restrict versioning, so it may be a legitimate bug rather than intended consequence, but it does seem reasonable to me that sandboxing might be the cause.
Got something to add? Send me email.
(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version
Increase ad revenue 50-250% with Ezoic