Setting umask for rails user

334 views
Skip to first unread message

Saimon Moore

unread,
Jul 2, 2008, 11:32:38 AM7/2/08
to Phusion Passenger Discussions
I'd like to set umask to 002 for the user running the rails processes.
However, passenger ignores the value set in ~/.profile (or set in
environment.rb via File.umask).

Any ideas?

Saimon

Cynthia Kiser

unread,
Jul 2, 2008, 4:09:33 PM7/2/08
to phusion-...@googlegroups.com

I would set it in a wrapper script that sets enviroment stuff and then
invokes ruby; use this wrapper script as the target of your
PassengerRuby/RailsRuby parameter. See this blog post for an example:
http://blog.rayapps.com/2008/05/21/using-mod_rails-with-rails-applications-on-oracle/

Saimon Moore

unread,
Jul 2, 2008, 4:14:37 PM7/2/08
to phusion-...@googlegroups.com
Cynthia, that's an excellant idea...

I'll try it out...

Many thanks...

Saimon

--
Saimon Moore
Freelance Web Developer
(Available for hire - For details visit http://saimonmoore.net)

Skype: saimonmoore
Yahoo IM: saimonmoore
Google IM: saimonmoore

Saimon Moore

unread,
Jul 3, 2008, 4:14:46 AM7/3/08
to phusion-...@googlegroups.com
Thanks Cynthia,

That worked like a charm...

Regards,

Saimon

On 02/07/2008, at 22:09, Cynthia Kiser wrote:

--

Reply all
Reply to author
Forward
0 new messages