Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_permissions: fix for acl method #205

Merged
merged 1 commit into from
Aug 24, 2012
Merged

set_permissions: fix for acl method #205

merged 1 commit into from
Aug 24, 2012

Conversation

lexfrl
Copy link
Contributor

@lexfrl lexfrl commented Aug 24, 2012

willdurand added a commit that referenced this pull request Aug 24, 2012
set_permissions: fix for acl method
@willdurand willdurand merged commit 68563f5 into everzet:master Aug 24, 2012
@willdurand
Copy link
Collaborator

Great! Thank you!

@natelenart
Copy link

@colinmutter Thank you, I was searching for what that error meant. I just downloaded capifony and am getting the same error, 4 months later. Defining :user fixed it for me too.

@garak
Copy link
Contributor

garak commented Jul 2, 2013

Since this issue is the first result for a google search, I'm reporting here my solution to use current user and permissions:

before 'deploy:set_permissions', 'deploy:set_user'

namespace :deploy do
  desc "Set user to current user"
  task :set_user do
    set :user, capture("whoami")
    puts "current user: #{user}"
  end
end

@ibasaw
Copy link

ibasaw commented Aug 13, 2013

@garak, i try your solution, but it doesn't work...what is your set :permission_method ? acl ? chown, chmod

here mine:

set :writable_dirs,       ["app/cache", "app/logs"]
set :webserver_user,      "www-data"
set :permission_method,   :acl
set :use_set_permissions, true

on production, permission folders as defined as root

@garak
Copy link
Contributor

garak commented Aug 13, 2013

I'm using same settings, with also:

set :use_sudo,        true

@ibasaw
Copy link

ibasaw commented Aug 13, 2013

@garak : what is the user who launch the deploy command ?

i got problem

setfacl: Option -m: Invalid argument near character 3
failed: "sh -c 'sudo -p '\\''sudo password: '\\'' setfacl -R -m u:root\\\n:rwX -m u:www-data:rwX /home/www/_v2/symfony/PROD/releases/20130813152508/app/cache /home/www/_v2/symfony/PROD/shared/app/logs'" on myip

@garak
Copy link
Contributor

garak commented Aug 13, 2013

of course, user needs to be in the sudoers in order to use sudo

@ibasaw
Copy link

ibasaw commented Aug 13, 2013

i know, this is bad, but i am root so...as root, it doesn't work

@willdurand
Copy link
Collaborator

root does not need sudo.

@ibasaw
Copy link

ibasaw commented Aug 15, 2013

i had succeeded finally, execute a shell chown root by the deploy.rb script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants