Howdy, I recently switched an app to Mongrel and since the switch, when I upload files using the file_column plug-in, the files are not uploaded with the correct permissions. I want something like this: -rw-rw-rw- file.jpg But I am getting: -rw------- file.jpg So, of course the files aren''t being served up by the Web server. Mongrel is running as the ''mongrel'' user that I created when I set the system up. Any suggestions? I am on Red Hat Enterprise Linux 3. Thanks, Hunter
** I am re-sending as I didn''t get any responses and I''m hoping someone has the answer to this. ** Howdy, I recently switched an app to Mongrel and since the switch, when I upload files using the file_column plug-in, the files are not uploaded with the correct permissions. I want something like this: -rw-rw-rw- file.jpg But I am getting: -rw------- file.jpg So, of course the files aren''t being served up by the Web server. Mongrel is running as the ''mongrel'' user that I created when I set the system up. Any suggestions? I am on Red Hat Enterprise Linux 3. Thanks, Hunter
On Mon, 2006-08-07 at 09:53 -0700, HH wrote:> ** I am re-sending as I didn''t get any responses and I''m hoping someone has > the answer to this. ** > > Howdy, > > I recently switched an app to Mongrel and since the switch, when I upload > files using the file_column plug-in, the files are not uploaded with the > correct permissions. > > I want something like this: > > -rw-rw-rw- file.jpg > > But I am getting: > > -rw------- file.jpg > > So, of course the files aren''t being served up by the Web server. > > Mongrel is running as the ''mongrel'' user that I created when I set the > system up. > > Any suggestions? I am on Red Hat Enterprise Linux 3.I''ve been a bit busy, but verify that the user you run Mongrel as has the proper umode. Zed
On 8/5/06, HH <lists at lastonepicked.com> wrote:> Howdy, > > I recently switched an app to Mongrel and since the switch, when I upload > files using the file_column plug-in, the files are not uploaded with the > correct permissions. > > I want something like this: > > -rw-rw-rw- file.jpg > > But I am getting: > > -rw------- file.jpg >There might be a cooler trick, but you could start Mongrel with a -S, pointing at a script that sets the umask to 0000 http://www.linuxforums.org/security/file_permissions.html