Wie realisiert man GID-Abfrage auf Gruppen?

Stefan Held obi at unixkiste.org
Thu Mar 22 19:29:24 UTC 2007


Am 22.03.2007 19:10 Uhr schrieb "Matthias Borrack" unter
<mailingliste at sinath.de>:


> Genau dann, wenn grep und awk mit der pam "kollidieren" ...

Genau das ist aber mit getent nicht der Fall.

getent liest wenn es sein muss auch Groups mittels pam_winbind auf.

Dazu siehe auch nsswitch.conf und das passende nss modul, welches man für
den Fall pam_ldap oder pam_mysql ja eh braucht um diese Gruppen aufzulösen.

Oder wie meinst du "kollidiert" sonst?

>> python -c "import grp;print grp.getgrnam('Gruppenname')[2]"
> Das klingt interessant.
> 
Ich kann mir wesentlich weniger Kisten vorstellen die ein Python draufhaben
als ein awk oder sed


-- 

 Stefan Held                    VI has only 2 Modes:
 obi unixkiste org              The first one is for beeping all the time,
 IRCNet: Obi_Wan                the second destroys the text.
---------------------------------------------------------------------------
perl -e'map{print pack c,($|++?1:13)+ord,select$,,$,,$,,$|}split//,ESEL.$/'
---------------------------------------------------------------------------
    GPG-Keyprint = EAF2 6A65 D102 F2DB 4970  2A67 455B 98F2 572C 3FA9






More information about the Fedora-de-list mailing list