Mario Vanoni ha scritto:Conraid, Patrick ha fatto il giusto!
/etc/group
root::0:root,audio,cdrom,video,plugdev,floppy
adduser utente
...
Press Enter to continue without adding any additional groups
Or press the UP arrow to add/select/edit additional groups
: audio cdrom floppy plugdev video
Non e` ovvio?
Sarò duro ma non mi torna.
Premesso che adduser utente funziona anche senza quella prima riga, normalmente non si mettono i nomi degli utenti nel gruppo?
Del resto nel man leggo
Name
group - user group file
Description
/etc/group is an ASCII file which defines the groups to which users belong. There is one entry per line, and each line has the format:
group_name:passwd:GID:user_list
The field descriptions are:
group_name
the name of the group.
password
the (encrypted) group password. If this field is empty, no password is needed.
GID
the numerical group ID.
user_list
all the group member's user names, separated by commas.
Bugs
As the 4.2BSD initgroups(3) man page says: No-one seems to keep /etc/group up-to-date.
Files
/etc/group
Quindi in teoria se voglio aggiungere il mio utente al gruppo root faccio
root::0:root,conraid
Ma audio, cdrom, video, plugdev e floppy sono altri gruppi. Per questo non mi torna.
E se anche fosse che posso mettere degli altri gruppi all'interno di un gruppo, perché mettere quei gruppi nel gruppo root, quando dice che voleva mettere l'utente root all'interno di quei gruppi?
Perdona le ripetizioni di parole