fix users.md. Add a User to Multiple Groups

This commit is contained in:
piccihud 2023-04-15 16:15:48 +02:00
parent 3315119e27
commit 19ecd18c19
1 changed files with 9 additions and 0 deletions

View File

@ -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/)