# Installing Nextcloud in user home directory on shared server

**URL:** <https://help.nextcloud.com/t/installing-nextcloud-in-user-home-directory-on-shared-server/238081>\
**Category:** ℹ️ Support\
**Created:** [January 2, 2026, 2:30pm UTC](https://help.nextcloud.com/t/installing-nextcloud-in-user-home-directory-on-shared-server/238081 "2026-01-02T14:30:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jernextome](https://help.nextcloud.com/letter_avatar/jernextome/32/5_5575768a8748004e209b776fc1b2916d.png) [@jernextome](https://help.nextcloud.com/u/jernextome)\
**Post date:** [January 23, 2026, 11:13pm UTC](https://help.nextcloud.com/t/installing-nextcloud-in-user-home-directory-on-shared-server/238081/3 "2026-01-23T23:13:54Z")

</div>

I decided to do it with ACL. Here’s what I did :

```auto
chown -R jerome:jerome /path/to/nextcloud
setfacl -Rm d:u:www-data:rwX,u:www-data:rwX /path/to/nextcloud
setfacl -Rm d:u:jerome:rwX,u:jerome:rwX /path/to/nextcloud

```

It seemed to work fine, until I did a CLI update (as user jerome) and Nextcloud wouldn’t start due to config.php not being readable by www-data.

[This thread](https://help.nextcloud.com/t/permissionsproblem-with-occ-tool/110310) pointed me to [the file that does the chmod](https://github.com/nextcloud/server/blob/master/lib/private/Config.php):

```auto
	// Prevent others not to read the config
	chmod($this->configFilePath, 0640);

```

I chmodded to 0660 and could login again.

Changing the line to

```auto
	// Prevent others not to read the config
	chmod($this->configFilePath, 0660);

```

would still prevent the file from being read by others while allowing www-data to write it even when the CLI update is performed by another user of the group.

Would that make sense?

Should I open an issue, or even a PR?

* * *

Note: I’m new to ACL and still figuring things out. I thought it would be a silver bullet but then realized that chmod overrides the ACL (rationale [here](https://serverfault.com/questions/352783/why-does-chmod1-on-the-group-affect-the-acl-mask/352915#352915)). Maybe this is not the way to go, after all Thoughts welcome.

---

_[View the full topic](https://help.nextcloud.com/t/installing-nextcloud-in-user-home-directory-on-shared-server/238081)._
