iphoto is locked on a NAS, what to do?
i had a similar problem opening an iPhoto Library backedup by Time Machine prior to reformatting HD and reinstalling OSX Snow Leopard.

in some cases (like mine), no amount of permission repairing or resetting will solve the problem.  apparently, because i reinstalled OSX from scratch (reformatting disk first), the Time Machine backup belongs to a defunct user.  therefore, even though the username and password are the same, the file that i extract DIRECTLY from TM will be always read-only (i could go via terminal and try some chmod'ifications, but...).  therefore, the issue must be tackled with a different approach:


open iPhoto
open FILE menu tab
choose FIND BACKUPS (translated from Portuguese)
select your timeMachine backup and find the specific image/date you want
browse to the iPhoto library you want to import (there may be various - i had 2)
create a new folder in Documents (where permissions will not be an issue)
after iPhoto backup has been restored to this folder, go to FILE > IMPORT


voila.  worked for me, i hope that this helps the many others who run into the same problem after reformatting and reinstalling OSX leopard (regular or sLow, both seem to act up).