Skip to content

Commit

Permalink
Fix permissions on vulnuser's home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Stephens committed Mar 4, 2015
1 parent b7c8331 commit cc8a24e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# make vulnuser
mkdir /home/vulnuser
useradd -d /home/vulnuser vulnuser
chown -R vulnuser:vulnuser /home/vulnuser
chmod 700 /home/vulnuser
chown -R root:vulnuser /home/vulnuser
chmod 750 /home/vulnuser

# configure vulnuser and flag
cd /tmp/challenge-files
Expand Down
2 changes: 2 additions & 0 deletions config/cookbook.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ script "install_rop" do
code <<-EOH
git clone https://github.com/nickstephens/rop-edurange.git challenge-files
/tmp/challenge-files/config/bootstrap.sh
touch /tmp/test-file
EOH

not_if "test -e /tmp/test-file"
end

0 comments on commit cc8a24e

Please sign in to comment.