question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ensuring correct ~/.config folder ownership fails on shared hosting

See original GitHub issue

Summary

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

  1. Having a user that doesn’t not own the ~/.config folder.
  2. 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:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
acburdinecommented, Mar 5, 2019

@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)

1reaction
L3o-poldcommented, Feb 27, 2019

@llakssz You need to edit the node_modules/ghost-cli/lib/utils/pre-check.js file to ignore this requirement.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found