22 lines
512 B
Markdown
22 lines
512 B
Markdown
# gestion d'un compte utilisateur
|
|
|
|
Créer le compte utilisateur thomas :
|
|
- répertoire personnel /home/thomas
|
|
- shell: /bin/bash
|
|
|
|
```bash
|
|
useradd -m -d /home/thomas 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 !$
|
|
```
|