I’ve made a web image gallery for my family. I set up FTP accounts so they can upload images to their own directories with ease. However, I also wrote some resize and rotation scripts. Here’s the problem: I can’t update their files because they’re not chmod’d properly. I don’t want to copy their files over to my username, so I need a better solution. Here are my ideas, none of which seem to work in a dreamhosters environment:
- Have a mask so that the uploads are at minimum 775.
- Allow my main account to execute commands as the other account (have to edit the sudoers file)
- Do something crazy like set up ssh keys between the accounts and fire off an exec() call that ssh’s a chmod command.
Can anyone provide a solution?