mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
make home dirs private in sudo example
tests use case where sudo failed to set cwd
This commit is contained in:
@@ -20,6 +20,9 @@ RUN rm /tmp/sudoers
|
||||
# add the regular users
|
||||
RUN for name in io ganymede; do useradd -m -p $(openssl passwd -1 $name) $name; done
|
||||
|
||||
# make home directories private
|
||||
RUN chmod o-rwx /home/*
|
||||
|
||||
# make the working dir owned by rhea, so she can create the state database
|
||||
RUN chown rhea .
|
||||
|
||||
|
Reference in New Issue
Block a user