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


Click here to return to the 'Avoid drop box file permission issues' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Avoid drop box file permission issues
Authored by: xanadu420 on Oct 08, '08 08:54:13AM
Well running a sudo chown -R yourusername ~/Public/Drop Box/ would change all the files in your Drop Box to the proper ownership. I don't know much about applescript, but could you make a script that runs that command every time something is put into that folder? I don't know if you can do that because changing the ownership requires a sudo and you would have to type in your password.

[ Reply to This | # ]
Avoid drop box file permission issues
Authored by: sojourner on Oct 08, '08 11:47:33AM
thanks for this hint! i love using drop boxes but hadn't found a workaround for this issue. i use hazel instead of folder actions, and hazel does allow you to use shell scripts. i'm not sure how you would handle this from a non-admin account, though.

[ Reply to This | # ]
Avoid drop box file permission issues
Authored by: thehigherlife on Oct 08, '08 12:18:04PM
read up on how to edit the sudoers file.

http://www.gsp.com/cgi-bin/man.cgi?section=8&topic=visudo

[ Reply to This | # ]
Authentication using AppleScript
Authored by: Fenton on Oct 08, '08 01:23:54PM

Just an addendum. In AppleScript you can bring up the authentication dialog with the phrase:

do shell script "command " with administrator privileges

You can also include your password, to avoid the dialog, using the syntax:

do shell script "command " password YourPassword with administrator privileges

Though it would be kind of a security risk having such a file laying around.

---
FileMaker Developer
San Diego



[ Reply to This | # ]
Avoid drop box file permission issues
Authored by: tubadood on Oct 17, '08 02:05:58AM

Although quite kludgy, if you wanted to avoid the superuser authentication issue while executing an applescript, you could write a folder action to attach to your dropbox that duplicates the file, thereby changing ownership to you (as you're doing manually now), then overwrites the original file with the copy.

Ick. Kludgy indeed, but it would work.



[ Reply to This | # ]