Compare commits

1 Commits

Author SHA1 Message Date
7af1066baf group sudo 2024-10-04 12:35:05 +02:00

View File

@@ -2,20 +2,9 @@
Créer le compte utilisateur thomas :
- répertoire personnel /home/thomas
- groupe sudo
- shell: /bin/bash
```bash
useradd -m -d /home/thomas -G sudo thomas
passwd thomas
```
## Gestion des clés
Faites en sorte que je puisse me connecter avec ce compte, en utilisant la clé https://infra.opendoor.fr/id_rsa.pub
```bash
install -m 700 -o thomas -g thomas -d /home/thomas/.ssh
curl https://infra.opendoor.fr/id_rsa.pub >> /home/thomas/.ssh/authorized_keys
chown thomas !$
chmod 600 !$
```