Closed adibaba closed 5 years ago
In commit https://github.com/dice-group/nbgraderutils/commit/d0e5b27f3c34c7425ba697bb136c781a1d492fb8
chmod o-rwx /home/* \
chgrp nbgadmin /home/*
In commit https://github.com/dice-group/nbgraderutils/commit/31b0b1e6f8000de174094bea012bf76f994a5d16
chmod g+rwx /home/*
Results:
root@eb83a3bf0948:/srv/jupyterhub# ls -la /home/
total 36
drwxr-xr-x 1 root root 4096 Nov 16 18:35 .
drwxr-xr-x 1 root root 4096 Nov 16 18:35 ..
drwxr-x--- 3 nbgadmin nbgadmin 4096 Nov 16 18:35 .nbgadmin
drwxr-x--- 5 nbgadmin nbgadmin 4096 Nov 16 18:35 nbgadmin
drwxrwx--- 2 nbgtesta nbgadmin 4096 Nov 16 18:35 nbgtesta
drwxrwx--- 2 nbgtestb nbgadmin 4096 Nov 16 18:35 nbgtestb
drwxrwx--- 2 nbgtestc nbgadmin 4096 Nov 16 18:35 nbgtestc
drwxrwx--- 1 nbguser nbgadmin 4096 Nov 16 18:35 nbguser
Commit https://github.com/dice-group/nbgraderutils/commit/53cc3994fae216ffaf23ba923fa4ae64318dd600 preserves file permissions during backups
Results:
root@75da0c75b7c2:/srv/jupyterhub# ls -la /home/
total 36
drwxr-xr-x 1 root root 4096 Nov 16 19:04 .
drwxr-xr-x 1 root root 4096 Nov 16 19:04 ..
drwxrwx--- 3 nbgadmin nbgadmin 4096 Nov 16 18:08 .nbgadmin
drwxrwx--- 5 nbgadmin nbgadmin 4096 Nov 16 19:04 nbgadmin
drwxrwx--- 2 nbgtesta nbgadmin 4096 Nov 16 19:04 nbgtesta
drwxrwx--- 2 nbgtestb nbgadmin 4096 Nov 16 19:04 nbgtestb
drwxrwx--- 2 nbgtestc nbgadmin 4096 Nov 16 19:04 nbgtestc
drwxrwx--- 1 nbguser nbgadmin 4096 Nov 16 19:04 nbguser
to change:
drwxr-x--- 3 nbgadmin nbgadmin 4096 Oct 21 19:46 .nbgadmin drwxr-xr-x 14 nbgadmin nbgadmin 4096 Oct 21 22:07 nbgadmin drwxr-x--- 1 nbguser nbgadmin 4096 Oct 21 22:00 nbguser
chmod 770 /home/ chmod 770 /home/.[!.]