Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
adc345f348 | |||
74760ca996 | |||
48a458979b | |||
14364cc614 |
3 changed files with 10 additions and 1 deletions
|
@ -1,12 +1,13 @@
|
||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
|
|
||||||
RUN apt update && apt install tree nano openssh-server iproute2 sudo -y
|
RUN apt update && apt install tree nano openssh-server iproute2 sudo -y
|
||||||
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
|
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo test
|
||||||
RUN echo 'test:test' | chpasswd
|
RUN echo 'test:test' | chpasswd
|
||||||
RUN service ssh start
|
RUN service ssh start
|
||||||
|
|
||||||
RUN mkdir -p /home/ubuntu/playground
|
RUN mkdir -p /home/ubuntu/playground
|
||||||
COPY assets/ /home/ubuntu/playground/
|
COPY assets/ /home/ubuntu/playground/
|
||||||
|
RUN chown -R test /home/ubuntu/
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
|
|
0
assets/backup/foo/bar
Normal file
0
assets/backup/foo/bar
Normal file
8
utenti/README.md
Normal file
8
utenti/README.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Utenti
|
||||||
|
|
||||||
|
Crea un file testo chiamato utenti.txt che contenga l'elenco degli utenti registrati sul sistema.
|
||||||
|
|
||||||
|
# Soluzione
|
||||||
|
|
||||||
|
cat utenti.txt | sha1sum
|
||||||
|
|
Loading…
Reference in a new issue