I some application, such as Xcode, Pages and Pixelmator 2, when I save, I get an error about not having the permissions to save the file:
"The document “[document name]” could not be saved. You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get Info."
There's nothing wrong with the permissions. I can edit and save the same files from other applications, such as Textmate, Text Edit and Preview, without problems. I can also create a new project in Xcode, and it generates all the files without problem, but I still get the error message when trying to save any changes in these.
I'm running Lion, clean installed.
Edit: here's an example ls -l on some files I can't edit:
-rw-r--r-- 1 ulrikdamm staff 4221 Nov 1 08:36 french.strings -rw-r--r-- 1 ulrikdamm staff 3755 Nov 1 10:53 german.strings -rwxrwxrwx 1 ulrikdamm staff 4147 Oct 31 23:49 hungarian.strings
even with full permissions, I can't save them. And it's not only some files that cannot be saved, it's all files, no matter what their permission level is.
Edit 2: folder permissions:
drwx------+ 32 ulrikdamm staff 1088 Nov 4 14:00 Desktop
(yes, it's on my desktop)
uid=501(ulrikdamm) gid=20(staff) groups=20(staff),402(com.apple.sharepoint.group.1),401(com.apple.access_screensharing),12(everyone),33(_appstore),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),100(_lpoperator),204(_developer)
Edit 3: I tried making a new user, and saving files there works without problems. Can it has something to do with some user settings being messed up?