Toon posts:

[redhat] default group membershivoor user wijzigen

Pagina: 1
Acties:
  • 29 views sinds 30-01-2008

Verwijderd

Topicstarter
Is het mogelijk om het default group membership van een user te wijzigen? (zodat groepsrechten voor een bepaald aantal users altijd hetzelfde zijn)

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
man adduser
-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 restric-
tions as the group given with the -g option. The default is for the user to belong only to the
initial group.
lijkt me dus niet, of je moet zelf een scripje schrijven die daar om heen werkt.

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • _Squatt_
  • Registratie: Oktober 2000
  • Niet online
Je kunt instellen wat de default groep voor een nieuwe user is.

Uit 'man adduser':
code:
1
2
3
4
5
6
7
8
9
10
11
   Changing the default values
     When invoked with the -D option, useradd will either  dis-
     play  the  current  default  values, or update the default
     values from the command line.  The valid options are

<snip>

     -g default_group
          The  group  name  or  ID  for  a new user's initial
          group.  The named group must exist, and a numerical
          group ID must have an existing entry .

En bestaande users kun je gewoon toevoegen en verwijderen uit groepen.

"He took a duck in the face at two hundred and fifty knots."


Verwijderd

mjah, met man adduser moet je toch een heel eind kome lijkt me zo :o

Als dat niet hetgeen is wat je bedoelt, zou je dan je vraag op een duidelijkere manier neer willen zetten? :)

Dit topic is gesloten.