# Ghost Install the directory is not readable by other users

**URL:** <https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997>\
**Category:** Installation\
**Created:** [February 14, 2024, 3:39pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997 "2024-02-14T15:39:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![XDL](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/xdl/32/26555_2.png) [@XDL](https://forum.ghost.org/u/XDL)\
**Post date:** [February 14, 2024, 3:39pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/1 "2024-02-14T15:39:28Z")

</div>

_Fill out the following bug report template with as much detail as possible!_

_Are you sure this is a bug?_ _If you just need help, post in the developer help category. If it’s a feature request, head to the ideas category._

* * *

**Issue Summary**

- Explain roughly what’s wrong
- What did you expect to happen?

In the directory `/var/www/ghost` ran the command `ghost install`. the permits of the directory are 755.  
Error: `The directory ```/home/$USER/``` is not readable by other users on the system.`  
I’m not trying to install it over that directory, actually not at all the PATH I am… Why is it complaining about it?

**Steps to Reproduce**

1. This is the first step…  
`sudo mkdir /var/www/ghost`
2. This is the second step,  
`cd /var/www/`  
`sudo chown $USER:$USER ghost`  
`sudo chmod 755 ghost`  
`cd ghost`  
`ghost install`

* * *

## Setup information

**Ghost Version**  
_Share which version of Ghost you’re using._  
Ghost-CLI version: 1.25.3

**Node.js Version**  
_If self-hosting - share which version of Node.js you’re using._  
v18.17.1

**How did you install Ghost?**  
_Provide some details about your install of Ghost if you are self-hosting._  
`sudo npm install ghost-cli@latest -g`

**Provide details of your host & operating system**  
_Include further details about your hosting and OS._  
DISTRIB\_ID=Ubuntu  
DISTRIB\_RELEASE=22.04  
DISTRIB\_CODENAME=jammy  
DISTRIB\_DESCRIPTION=“Ubuntu 22.04.3 LTS”

**Database type**  
_MySQL 5.7 / MySQL 8 / SQLite 3 / Other_  
Ver 8.0.36

**Browser & OS version**  
_Include if reporting frontend bugs._

**Relevant log / error output**  
`Copy and paste any relevant log output. Use backticks to format this into code.`

`ghost install`

```auto
✖ Checking system Node.js version - found v18.17.1
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
One or more errors occurred.

1) SystemError

Message: The directory /home/$USER/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.

Debug Information:
    OS: Ubuntu, v22.04.3 LTS
    Node Version: v18.17.1
    Ghost-CLI Version: 1.25.3
    Environment: production
    Command: 'ghost install'

```

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [February 14, 2024, 4:15pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/2 "2024-02-14T16:15:28Z")

</div>

> [@XDL](#):
>
> ```auto
> Message: The directory /home/$USER/ is not readable by other users on the system.
> This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.
> 
> ```

The Ghost user home folder needs to be readable, so you’ll need to rectify this. If you `ls -Flai /home/$USER` you’ll see hidden folders for Ghost, NPM etc. Thus, “… you must either make this directory readable by others or install node and Ghost-CLI in another location.”

* * *

Moved to #Installation

---

<div class="post-metadata">

**Author:** ![XDL](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/xdl/32/26555_2.png) [@XDL](https://forum.ghost.org/u/XDL)\
**Post date:** [February 14, 2024, 4:22pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/3 "2024-02-14T16:22:30Z")

</div>

needs to change permits to 755

```chown 755 /home/$USER``

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [February 14, 2024, 4:51pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/4 "2024-02-14T16:51:25Z")

</div>

You shouldn’t need to make any changes to the home folder; this user should be the Ghost user.

I’d expect to have seen these steps from the prompt.

```auto
ghost-user@host:~$ # ssh session opened by ghost-user; current folder is ~

curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash
sudo apt install nodejs --yes
sudo npm install ghost-cli@latest -g
sudo mkdir -p /var/www/ghost
sudo chown ghost-user:ghost-user /var/www/ghost
sudo chmod 775 /var/www/ghost
cd /var/www/ghost
ghost install

```

---

<div class="post-metadata">

**Author:** ![XDL](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/xdl/32/26555_2.png) [@XDL](https://forum.ghost.org/u/XDL)\
**Post date:** [February 14, 2024, 8:43pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/5 "2024-02-14T20:43:59Z")

</div>

But are you talking about the ghost user created by the software or any user for example ghost-user?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [February 14, 2024, 10:52pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/6 "2024-02-14T22:52:34Z")

</div>

The Ghost user _is_ the local Linux user account. When you run `ghost install` without `sudo` it runs as the logged-in user. This is the user account that runs all the commands shown above. This is why I added:

```auto
ghost-user@host:~$ # ssh session opened by ghost-user; current folder is ~

```

`~` means `/home/ghost-user` in this instance, and this is where `npm` and Ghost place config files, logs etc.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [May 14, 2024, 10:52pm UTC](https://forum.ghost.org/t/ghost-install-the-directory-is-not-readable-by-other-users/44997/7 "2024-05-14T22:52:51Z")

</div>

Closed on May 14, 2024, 10:52pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
