Ensuring correct ~/.config folder ownership fails on shared hosting
See original GitHub issueSummary
On a shared hosting we do not own root user. Ghost will fail during the install because it check that current user has right on the ~/.config folder.
I don’t understand why because it don’t seems to be required during the install. I successfully install Ghost on this shared hosting by commenting this step.
Steps to Reproduce
- Having a user that doesn’t not own the ~/.config folder.
- Run
ghost install
Technical details
This is automatically output by Ghost-CLI if an error occurs, please copy & paste:
- OS: Debian
- Node Version: 8.10.0
- Ghost-CLI Version: 1.9.9
- Environment: production
- Command:
ghost install
Log
uid****@od-***:~/blog3$ ghost install
+ sudo chown -R ****_blog:****_blog /home/clients/*******/.config
? Sudo Password [input is hidden]
I do not own the root password… Could we remove this check or making it optional?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to set up user permissions in a shared hosting environment
1. Create a common group, to which all users can be added. sudo groupadd www-bob · 2. Creating deployment users # When creating...
Read more >Windows File Server - Folder ownership problems and ...
These issues are caused by improper / unplanned NTFS permissions model. Majority of issues happens because of uneven folder ownership. Microsoft ...
Read more >How to Change File Permissions in cPanel - InMotion Hosting
In this tutorial, we will show you how to change file permissions in cPanel. Each file and directory (folder) in your account has ......
Read more >How to configure permissions in cPanel File Manager
Changing permissions for a file or directory · Log in to cPanel. · Open the File Manager: · In the File Manager main...
Read more >Permissions error - after declaring USER and WORKDIR #740
Making the folders to be mounted in the host before running the container means the permissions will be preserved in the container by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@L3o-pold added the environment variable skip in - the fix should be released as part of Ghost-CLI 1.10 once that happens (should hopefully be in the next couple of weeks)
@llakssz You need to edit the
node_modules/ghost-cli/lib/utils/pre-check.js
file to ignore this requirement.