docker-library / owncloud

Docker Official Image packaging for ownCloud
101 stars 77 forks source link

apps and data permissions 777 #69

Closed robnagler closed 6 years ago

robnagler commented 8 years ago

When I start the owncloud:9.0-fpm container, it changes the permissions of apps and config to 777 and the group to 65534 (nfsnobody, nogroup). config.php is setting umask(027), which is working for the data directory, but not apps and config.

# ls -altr
total 10
drwxr-x--- 26 www-data www-data  26 Mar  8 06:55 apps
drwxr-xr-x 37 root     root      39 Apr  9 18:36 ..
drwxr-x---  4 www-data www-data   8 Apr  9 18:40 data
drwxr-x---  5 www-data www-data   6 Apr 10 10:53 .
-rw-r--r--  1 www-data www-data 362 Apr 10 10:53 init.log
drwxr-x---  2 www-data www-data   6 Apr 10 11:06 config
# service owncloud start
Starting owncloud:  OK
# ls -altr
total 10
drwxrwxrwx  2 www-data nfsnobody   6 Mar  8 06:54 config
drwxrwxrwx 26 www-data nfsnobody  26 Mar  8 06:55 apps
drwxr-xr-x 37 root     root       39 Apr  9 18:36 ..
drwxr-x---  4 www-data www-data    8 Apr  9 18:40 data
drwxr-x---  5 www-data www-data    6 Apr 10 11:07 .
-rw-r--r--  1 www-data www-data  362 Apr 10 11:07 init.log
tianon commented 6 years ago

Sorry for the delay.

I'm sorry, but I don't think there's enough information here for us to help. The full extent of what our scripts do can be seen here:

https://github.com/docker-library/owncloud/blob/2791cbf8de3f9feee62d2f5f4d7a773a7d980986/9.1/fpm/docker-entrypoint.sh#L4-L7

We only chown on first run/extract (as gated by the existence of version.php), so whatever other behavior you're seeing has to be related to either your local environment, or something ownCloud itself is doing.

In the future, these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow. Thanks!