You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/05/26 17:17:20 UTC
[GitHub] [superset] ethack commented on issue #14847: Docker /app permission issue
ethack commented on issue #14847:
URL: https://github.com/apache/superset/issues/14847#issuecomment-848961017
https://github.com/apache/superset/commit/d46aa6004d3ee78929048f607e853f7a77237af5#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557 appears to be related. It is a recent commit that references `/app/superset_home` and the commit message is about fixing docker superset permissions.
It looks like that change is counting on `useradd` to create the user's home directory. `useradd` doesn't appear to do this by default, but will with the `--create-home` flag. Additionally, it seems that `useradd` will not create parent directories, meaning that `/app` already has to exist. These steps seem to work and give the desired result.
```
$ docker run --rm -it python:3.7.9 bash
root@2a032833e3c4:/# mkdir /app
root@2a032833e3c4:/# useradd --user-group -d /app/superset_home --no-log-init --create-home --shell /bin/bash superset
root@2a032833e3c4:/# ls -l /app
total 4
drwxr-xr-x 2 superset superset 4096 May 26 17:14 superset_home
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org