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

Folders and file permissions after pushing wordpress #354

Closed
brunoDegaspare opened this issue Nov 21, 2016 · 3 comments
Closed

Folders and file permissions after pushing wordpress #354

brunoDegaspare opened this issue Nov 21, 2016 · 3 comments

Comments

@brunoDegaspare
Copy link

Hi,
Firstly I apologise if this question has been already asked here.

My issue is that when I move Wordpress from local to server using wordmove all foders permissions are set to 777. Is there a way to keep the permissions on the server set to 755 ?

Thank you.

@alessandro-fazzi
Copy link
Member

Hi there,

you should make direct use of rsync's option --chmod; refer to rsync manual for an insight of the matter. Wordmove gives you a proxy-option to pass options to the underneath rsync:

rsync_options: "--chmod=755"

Anyway keep in mind: permissions does not depends on Wordmove self, but on your user - and its permission mask - on the remote server. So it's not always possible to modify permissions based on your privilege. In a sane environment you can anyway.

--chmod takes a lot of dialects; I can't help you too deep, but I hope you have a bright clue to follow. :)

Cheers

@alessandro-fazzi
Copy link
Member

Oh! rsync-options option is documented here: https://github.com/welaika/wordmove/wiki/Movefile-configurations-explained :)

@phidodido
Copy link

This one worked for me with Siteground to set folders to 755 and files to 644
rsync_options: "--chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r"

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

3 participants