# Dedicated ROR server and security

**URL:** <https://www.ruby-forum.com/t/dedicated-ror-server-and-security/59768>\
**Category:** Rails\
**Created:** [May 6, 2006, 9:14am UTC](https://www.ruby-forum.com/t/dedicated-ror-server-and-security/59768 "2006-05-06T09:14:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nauhaie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nauhaie](https://www.ruby-forum.com/u/nauhaie)\
**Post date:** [May 6, 2006, 9:14am UTC](https://www.ruby-forum.com/t/dedicated-ror-server-and-security/59768/1 "2006-05-06T09:14:34Z")

</div>

Hi all,

I am trying to set up a dedicated Ruby on Rails server on Debian Sarge,  
with Apache 2 and mod\_fcgid. There are 2-3 applications on this server,  
using virtual hosts. For now, everything works fine.

However, I would like to secure this a little bit more. What I would  
like is to prevent one of the web apps to run a shell command to read  
one of the other app’s source file, or worse, modify it. With PHP, there  
was basedir which did the job if I remember correctly.

So, what I would like is a way to ‘chroot’ all fcgid process from one  
app to the app’s directory. Could suexec do the job? I couldn’t find any  
tutorial… I don’t really need the fcgid process to be run as a special  
user, I just need it to be unable to access what it should not access.

Thank you in advance 😉  
Nauhaie
