Files
tldr/pages.fr/linux/useradd.md

24 lines
568 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.
# useradd
> Crée un nouvel utilisateur.
- Crée un nouvel utilisateur :
`useradd {{nom}}`
- Crée un nouvel utilisateur avec un dossier home par défaut :
`useradd --create-home {{nom}}`
- Crée un nouvel utilisateur avec le shell spécifié :
`useradd --shell {{/chemin/vers/shell}} {{nom}}`
- Crée un nouvel utilisateur qui appartient aux groupes supplémentaires (attention à l'omission des espaces) :
`useradd --groups {{groupe1,groupe2}} {{nom}}`
- Crée un nouvel utilisateur sans un dossier home :
`useradd --no-create-home --system {{nom}}`