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

setfacl illegal option -- R on FreeBSD #8

Open
webdevilopers opened this issue Feb 11, 2016 · 1 comment
Open

setfacl illegal option -- R on FreeBSD #8

webdevilopers opened this issue Feb 11, 2016 · 1 comment

Comments

@webdevilopers
Copy link

Our provider enabled acl for us on their FreeBSD server. Unfortunately the option -R does not seem to exist on FreeBSD:

ommand: ( SYMFONY_ENV=prod /usr/bin/env setfacl -Rm
u:vuser:rwx,u:foobar:rwx
/usr/local/www/apache24/noexec/foobar/shared/app/logs
/usr/local/www/apache24/noexec/foobar/releases/20160210175337/app/cache
)
DEBUG [fb0c7ccf]     setfacl: illegal option -- R
DEBUG [fb0c7ccf]     usage: setfacl [-bdhkn] [-a position entries] [-m
entries] [-M file] [-x entries] [-X file] [file ...]
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as
[email protected]: Exception while executing
as [email protected]: setfacl exit status: 1
setfacl stdout: Nothing written
setfacl stderr: setfacl: illegal option -- R
usage: setfacl [-bdhkn] [-a position entries] [-m entries] [-M file]
[-x entries] [-X file] [file ...]

Any ideas / workarounds?
capistrano/symfony#32 @alafon @peterjmit

@aminin
Copy link

aminin commented Jun 23, 2016

@webdevilopers

The obvious solution is to replace

setfacl -R <your_options> <directory>

with

find <directory> -exec setfacl <your_options> {} \;

somewhere here https://github.com/capistrano/file-permissions/blob/master/lib/capistrano/tasks/file-permissions.rake#L45

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

No branches or pull requests

2 participants