Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:55:18+00:00 2026-05-26T06:55:18+00:00

Currently I deploy my Rails 3.1 app with user root. I know it’s bad

  • 0

Currently I deploy my Rails 3.1 app with user “root”. I know it’s bad 🙂 but which user should I use ? Why ? And what permissions should I set on the files so that Apache/Passenger etc. can access them ?

Thanks for your help, I’d like to understand what’s happening beyond the surface.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:55:18+00:00Added an answer on May 26, 2026 at 6:55 am

    One way of setting the user/permissions for something like what you’ve described would be to create a new user specifically for your application and change the owner/group of your app’s deploy directory and its contents to yourappuser:apache.

    The idea is to disallow any kind of operation from everyone except from yourappuser, which should be able to do everything, and apache, which should be able to read its contents.

    In order to do this, you can then change the permissions on this folder to allow its owner to read/write/execute and its group to read its contents, while disallowing everything from any other user (740, for instance).

    There are many other approaches, but I tend to use this one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app that I'm trying to deploy with Capistrano (which I've
Currently I use capistrano to deploy my app to a remote production server in
I'm currently trying to deploy an Ruby on Rails 3.0.9 app on a production
I am currently deploying a Rails application using Capistrano. Cap deploy:update_code usually works just
I'm currently getting the AccessControlException below when I deploy to app engine (I don't
This is my first time trying to set up capistrano to deploy a rails
I'm trying to deploy a Rails app to a CentOS server running Passenger. The
I'm trying to deploy a Rails 3.2 app on JBOSS AS 7.1, using JRuby
I've inherited an existing Rails 2 application and am currently trying to deploy it
I know that there are hundreds of pages written on Django v Rails, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.