Are you root user ?
Does the user have the write bit for the files?
What does 'ls -la' give out?
What does 'ls ./.AppleDB/__db.001' give you ?
Best
Alexander
'ls -la' gives :-
drwxr-xr-x+ 16 FreeNASuser wheel 22 Oct 23 21:08 ./
drwxr-xr-x 4 root wheel 512 Oct 23 19:51 ../
drwxr-xr-x 2 root 755 26 Oct 23 20:23 .AppleDB/
drwxr-xr-x 2 FreeNASuser wheel 3 Oct 8 23:37 .AppleDesktop/
drwxr-xr-x 2 FreeNASuser wheel 8 Oct 8 23:38 .AppleDouble/
-rw-rw-rw- 1 FreeNASuser wheel 24580 Oct 23 20:00 .DS_Store
-rw-rw-rw- 1 FreeNASuser wheel 5160 Apr 22 2011 .VolumeIcon.icns
-rw-rw-rw- 1 www wheel 4096 Oct 3 23:25 ._Synchronize! Volume ID
-rwxr-xr-x+ 1 FreeNASuser wheel 39 Oct 23 21:08 .bash_history*
drwxr-xr-x+ 3 FreeNASuser wheel 4 Oct 23 20:21 .ssh/
-rw-r--r-- 1 root wheel 0 Oct 22 21:52 .windows
drwxr-xr-x+ 9 FreeNASuser wheel 11 Sep 18 00:15 Downloads/
drwxrwxrwx 7 FreeNASuser wheel 10 Sep 14 22:28 HD Backups/
drwxrwxrwx 7 FreeNASuser wheel 9 May 7 12:19 Movies/
drwxrwxrwx 8 FreeNASuser wheel 11 Jul 13 2009 Music/
drwxrwxrwx 3 FreeNASuser wheel 3 Apr 22 2011 Network Trash Folder/
drwxrwxrwx 6 FreeNASuser wheel 8 Feb 6 2011 Other/
drwxrwxrwx 80 FreeNASuser wheel 89 Oct 2 11:52 Photos/
-rw-rw-rw- 1 www wheel 48 Oct 3 23:25 Synchronize! Volume ID
drwxrwxrwx 3 FreeNASuser wheel 3 Apr 22 2011 Temporary Items/
drwxr-xr-x+ 3 FreeNASuser wheel 33 Oct 7 19:35 Trash/
'ls ./.AppleDB/__db.001' gives :-
./.AppleDB/__db.001