Skip to content

Commit d40295e

Browse files
committed
fix: fix dir permission again
1 parent 4bc61fc commit d40295e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

tutorial/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
environment:
88
- PUID=1000
99
- PGID=1000
10+
- UMASK=0002
1011
- TZ=Etc/UTC
1112
- DEFAULT_WORKSPACE=/config/workspace
1213
# TODO: remember define these in .env file

tutorial/root/etc/s6-overlay/s6-rc.d/init-jupyterlab/run

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ useradd -d /config/demo -g abc -G users demo
66

77
mkdir -p /config/.local/share/jupyter
88
chown abc:abc -R /config/.local
9-
find /config/.local -type d -exec chmod 775 {} +
9+
find /config/.local -type d -exec chmod g+rwx {} +
10+
find /config/.local -type f -exec chmod g+rw {} +
1011

1112
mkdir -p /config/.cache
1213
chown abc:abc -R /config/.cache
13-
find /config/.cache -type d -exec chmod 775 {} +
14+
find /config/.cache -type d -exec chmod g+rwx {} +
15+
find /config/.cache -type f -exec chmod g+rw {} +
1416

1517
mkdir -p /config/.config
1618
chown abc:abc -R /config/.config
17-
find /config/.config -type d -exec chmod 775 {} +
19+
find /config/.config -type d -exec chmod g+rwx {} +
20+
find /config/.config -type f -exec chmod g+rw {} +
21+
22+
mkdir -p /config/.ipython
23+
chown abc:abc -R /config/.ipython
24+
find /config/.ipython -type d -exec chmod g+rwx {} +
25+
find /config/.ipython -type f -exec chmod g+rw {} +
1826

1927
mkdir -p /config/.jupyter
2028
chown demo:abc -R /config/.jupyter

0 commit comments

Comments
 (0)