make home dirs private in sudo example

tests use case where sudo failed to set cwd
This commit is contained in:
Min RK
2014-11-04 13:29:30 -08:00
parent 75d2400b6c
commit 71dbdaf3f2

View File

@@ -20,6 +20,9 @@ RUN rm /tmp/sudoers
# add the regular users # add the regular users
RUN for name in io ganymede; do useradd -m -p $(openssl passwd -1 $name) $name; done 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 # make the working dir owned by rhea, so she can create the state database
RUN chown rhea . RUN chown rhea .