#31 new
Paul Dowman

temp dir owned by root after doing sudo rake gems:install

Reported by Paul Dowman | September 8th, 2008 @ 05:59 PM

The temp dir is created in the initializer the first time the app is run. However, with Rails 2.1 a likely first thing to do after deploying is "sudo rake gems:install", which runs the initializer and creates the temp dir.

Since the gems:install task must be run as root (using sudo probably) this results in attachment_fu's tempdir being owned by root, and then unusable when the app starts up later as a user other than root.

Possible workarounds are: 1. delete the tempdir before creating it each time, but this might not work if it contains files 2. don't create the temp dir until it's actually needed the first time. This is probably the best solution.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket