Compare commits

...

4 commits
rhel ... master

Author SHA1 Message Date
adc345f348 Merge 2024-05-16 17:21:57 +02:00
74760ca996 Aggiunto esercizio utenti 2024-05-16 17:20:07 +02:00
48a458979b Fix Dockerfile removing -u option 2024-05-16 16:39:43 +02:00
14364cc614 Fix user permission 2024-04-18 14:43:01 +02:00
3 changed files with 10 additions and 1 deletions

View file

@ -1,12 +1,13 @@
FROM ubuntu
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 service ssh start
RUN mkdir -p /home/ubuntu/playground
COPY assets/ /home/ubuntu/playground/
RUN chown -R test /home/ubuntu/
EXPOSE 22

0
assets/backup/foo/bar Normal file
View file

8
utenti/README.md Normal file
View 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