Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Sorry, doesn't (completely) work!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sorry, doesn't (completely) work!
Authored by: Anonymous on Nov 01, '03 05:19:06PM

This hint doesn't work. It only partially works but doesn't solve the whole problem.

The 'umask 002' command is supposed to make all files created with group write permission. But when you import from your camera the files are rw-r--r-- !. Even if you duplicate a picture, the new file gets copied with the same permissions (no group write).

Ironically, if you DON'T do this hint and have a rw-rw-r-- file, the copy created with the Duplicate command does NOT have group write permissions...so the umask IS doing something.

I tired to apply this trick to Image Capture.app hoping this was where the permissions were set on an import, but it didn't help.

Essentially, all this trick does is make sure that files that are already Group/Write don't lost that setting but new files are still Group/Read-only.

Anyone want to venture to guess why this doesn't work?

Robert



[ Reply to This | # ]
Sorry, doesn't (completely) work!
Authored by: geoffsaulnier on Nov 04, '03 09:17:40PM
You will need to do a little more work if you want to get all this to work every day. The way iPhoto stores stuff is to create directgories for the year, the month, the day, and then the photos. So, when you import, it creates a directory with your umask pemissions, and the other users cannot access it.

I fix this by setting up a crontab to run every night for the root user:

# Make sure that anyone in group saulnier can write to the iPhoto library
00 02 * * * /usr/sbin/chown -R geoff:saulnier /Users/Shared/iPhoto*; /bin/chmod -R 775 /Users/Shared/iPhoto*

Please excuse any garbling - should be two lines, on starting with a # and the other starting with 00

That ensures that the permissions for the entire thing are reset at 2am every day. I have a group called saulnier, and my wife and I are in it. This would work less well if we were both using it multiple times in the same day.

The ideal would be to attach this to a .logout script - but now, with fast user switching, it is even more difficult to ascertain when a new user is trying to use the app, etc.

Anyone with a clever idea?

---
___

Geoff Saulnier - Mac, *NIX, perl, hack!!

[ Reply to This | # ]

Sorry, doesn't (completely) work!
Authored by: jnm on Jan 21, '04 01:49:41PM
Yep, another idea but cannot try it : copy your iPhoto Library on another volume with access rights disabled, then create a symbolic link ala unix :
% cd ~/Pictures/
% mv iPhoto\ Library iPhoto\ Library.old
% ln -s /Volumes/YOUR_VOLUME_NAME_HERE/iPhoto\ Library

Just let me know....

---
--
Jnm.

[ Reply to This | # ]