linux user group brescia

immagine del castello

Archivio della mailing list

curiosità sui gruppi

marco ghidinelli marcogh a linux.it
Mer 3 Mar 2004 10:05:47 UTC
On Mon, Mar 01, 2004 at 08:34:39AM +0100, Sergio Bevilacqua wrote:
> 
> non sono riuscito a capire come funziona gpasswd.
> La man page dice solo che serve ad aggiungere la password ad un gruppo,
> al pari di quello che si fa con gli utenti, e nient'altro.
> Io mi aspettavo che una volta messa la password al gruppo, questa fosse
> richiesta, ad esempio, per aggiungere utenti a tale gruppo, o comunque
> qualcosa del genere. Invece pare che non sia cambiato nulla.
> Qualcuno mi sa spiegare questo arcano? :)

la pagina di manuale che ho io mi sembra molto piu' chiara:

GPASSWD(1)							 GPASSWD(1)

NAME
       gpasswd - administer the /etc/group file

SYNOPSIS
       gpasswd group
       gpasswd ‐a user group
       gpasswd ‐d user group
       gpasswd ‐R group
       gpasswd ‐r group
       gpasswd [‐A user,...] [‐M user,...] group

DESCRIPTION
       gpasswd  is  used  to  administer the /etc/group file (and /etc/gshadow
       file if compiled with SHADOWGRP defined). Every group can have adminis‐
       trators, members and a password. System administrator can use ‐A option
       to define group administrator(s) and ‐M option to  define members  and
       has all rights of group administrators and members.  
       Group  administrator  can  add and delete users using ‐a and ‐d options
       respectively. Administrators can use ‐r option to  remove  group pass‐
       word.  When  no password is set only group members can use newgrp(1) to
       join the group. Option ‐R disables access to  the  group  through new‐
       grp(1) command.

       gpasswd  called  by  a group administrator with group name only prompts
       for the group password. If password is set the members can  still new‐
       grp(1) without a password, non‐members must supply the password.

FILES
       /etc/group - group information
       /etc/gshadow - shadow group information

SEE ALSO
       newgrp(1), groupadd(8), groupdel(8), groupmod(8), grpck(8)

AUTHOR
       Rafal Maszkowski <rzm a pdi.net>

                                                                    GPASSWD(1)


-- 
BOFH excuse #276:

U.S. Postal Service



Maggiori informazioni sulla lista Lug