-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 26 May 2004 13:58, Marcio wrote:
> Salve!!!
>
> Estou tentando colocar um usu�rio em v�rios grupos, mas n�o
> consigo. No sistema aceita no m�ximo 2 grupos.....
> ex:
>
> [EMAIL PROTECTED] root]# usermod -g group1 user
> [EMAIL PROTECTED] root]# usermod -G group2 user
> [EMAIL PROTECTED] root]# groups user
> user : group1 group2
>
> At� ai td bem.... mas quando tento adicionar o usu�rio a um
> terceiro grupo, ele sai do segundo...
>
> [EMAIL PROTECTED] root]# usermod -G group3 user
> [EMAIL PROTECTED] root]# groups user
> user : group1 group3
>
> Como eu fa�o para colocar o usu�rio em mais de 2 grupos?

Da documenta��o:

       -g initial_group
              The group name or number of the user's new initial login 
              group. The  group  name  must  exist.   A group number
              must refer to an already existing group.  The default
              group number is 1.

       -G group,[...]
              A list of supplementary groups which the user is also  a 
              member of.   Each  group is separated from the next by a
              comma, with no intervening whitespace.  The groups  are 
              subject  to  the  same restrictions as the group given
              with the -g option.  If the user is currently a member
              of a group which is not listed,  the  user will be
              removed from the group

Ou seja, voc� deve especificar todos os grupos adicionais de uma s� 
vez.


Sds,
- -- 
Godoy.     <[EMAIL PROTECTED]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAtOOcEzC+baSjBiURAmMFAJ9aITAmb45XtBXc3/BQRMhEUokgUQCfR7Fn
oz0/U8G006s0M56+b+2H+GM=
=O7V+
-----END PGP SIGNATURE-----
---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a