From 19ecd18c19717c96d6a5c19b5f57f638d23aecf2 Mon Sep 17 00:00:00 2001 From: piccihud Date: Sat, 15 Apr 2023 16:15:48 +0200 Subject: [PATCH] fix users.md. Add a User to Multiple Groups --- users.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/users.md b/users.md index e24d9d8..0072a40 100644 --- a/users.md +++ b/users.md @@ -15,6 +15,14 @@ Il comando è composto da: Questo comando crea il nuovo utente, compresa la sua home directory. +### Aggiungere un utente esistente a dei gruppi + +```bash +usermod -aG group1,group2 username + +usermode -aG adm,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev,bluetooth,lpadmin,scanner davide +``` + ### Impostare una password Il nuovo utente non potrà accedere finché non sarà impostata una password. @@ -94,3 +102,4 @@ sudo deluser --remove-home eric - [https://www.howtogeek.com/806104/add-a-user-to-linux/](https://www.howtogeek.com/806104/add-a-user-to-linux/) - [https://www.howtogeek.com/656549/how-to-delete-a-user-on-linux-and-remove-every-trace/](https://www.howtogeek.com/656549/how-to-delete-a-user-on-linux-and-remove-every-trace/) - [https://linuxhandbook.com/chage-command/](https://linuxhandbook.com/chage-command/) +- [https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/](https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/)