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

  • Home
  • SEARCH
  • 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 8127587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:35:02+00:00 2026-06-06T07:35:02+00:00

In my deploy-file I set the group to www-data: set :user, root set :group,

  • 0

In my deploy-file I set the group to www-data:

set :user,            "root"
set :group,           "www-data"

so when using cap:setup I expected capistrano to chown the folders with root:www-data

But all folders and files are root:root.

Any ideas where this problem could come from?

Information: I’m Using system-wide-rvm.

  • 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-06-06T07:35:04+00:00Added an answer on June 6, 2026 at 7:35 am

    as for my understanding you should do it manually, what setup does is to
    use the user to login, not to set the rights to directory.

    I have found no group setting for capistrano, maybe you were using some extensions for it?

    What you could do to change it could be:

    after "deploy:setup", :setup_group
    task :setup_group do
      run "chown -R :#{group} #{deploy_to} && chmod -R g+s #{deploy_to}"
    end
    

    But in first place you should not use root for deployment, as @Julian mentions in comment better practice is to use separate user for this task and set his group to proper group, then it will not require the above task and will work automatically.

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

Sidebar

Related Questions

I have this deploy.rb file: set :application, UDA set :domain, 10.0.0.59 set :deploy_to, /home/gitek/www/uda/
I'm trying to set up a batch file to automatically deploy a php app
I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please.
I am trying to create a capistrano task to setup my log rotation file.
I successfully created my war file using warble. I am trying to deploy my
I'm planning to deploy my DB file in the Users\CurrentUserName\AppData folder, because default User
I'm using github to store the repository, and I'm reading Deploy with Capistrano :
I was trying to deploy a WAR file using the Cargo Ant task version
I'm using Capistrano and Rails 2.3.4. I've already done a deploy:cold to the remote
I'm trying to deploy to a slicehost slice using this config/deploy/production.rb file. I'm clueless

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.