cours/unix commande useradd.md
oscar.plaisant@icloud.com a2ee0fa5ca from github to this gitea
2023-10-23 23:09:51 +02:00

30 lines
671 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
alias: "useradd"
---
sibling:: [[unix commande userdel]]
up::[[terminal commandes]]
title::"commande pour ajouter un nouvel utilisater"
#informatique/unix
----
> [!definition] parametres
> ```
> -m, --create-home
> Créé le répertoire personnel s'il n'existe pas (à partir du squelette)
> -M, --no-create-home
> -g, --gid GROUPE
> Nom du groupe ou [[unix GID|GID]] du groupe
> -G, --groups GROUPE1[,GROUPE2,...[,GROUPEN]]]
> Listes de [[unix groupes]] **supplémentaires** ⚠sans espace
>
> ```
```bash
$> useradd -u 550 -g licence2 -c "Bob SLEIGH,Licence 2 Info" -d /home/bob -m -s /bin/bash bob
$> ls -l | /home | grep bob
```