Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
FROM ubuntu
MAINTAINER James Shuttleworth <csx239@coventry.ac.uk>
RUN apt-get update
RUN apt-get -y install net-tools
RUN apt-get -y install openssh-server sudo
RUN apt-get -y install zip unzip
COPY starter.sh /root/
RUN chmod u+x /root/starter.sh
RUN useradd -ms /bin/bash tri
RUN echo "tri:force"|chpasswd
RUN echo "tri ALL = NOPASSWD: /usr/bin/unzip" >> /etc/sudoers
RUN chmod a+rx /root/
RUN echo "This is a file only accessible by root" > /root/flag.txt
RUN chmod a-rwx /root/flag.txt
CMD ["/root/starter.sh"]