SUMMARY: updating /etc/group and NIS

From: Shawn Koppenhoefer (shawn@litsun.epfl.ch)
Date: Fri Apr 26 1991 - 05:24:02 CDT


thanx to the following people for their help:
        sbradley@iWarp.intel.com frankk@cwi.nl stern@East.Sun.COM
        fitz@frc2.frc.ri.cmu.edu edy_J_Lemke@Princeton.EDU ang@theory.lcs.mit.edu
        lbd@alux5.att.com bob@omni.com kjv@tampella.fi
        jjb@cs.wayne.edu phillips@acsu.buffalo.edu kkw@UCSD.EDU@ccrwest.UUCP

my original query:
        when I update the /etc/group file on my NIS server and type
        make in /var/yp to update all the other NIS clients the information
        is rarely passed correctly. "groups user" gives a different result
        than "groups" when run by a given "user". SOMETIMES IT WORKS FINE!
        but other times it's a no-go.

the solution: push the netid map whenever you push the group file.
        make sure you don't simply run "make" in /var/yp but rather
        " make group netid ". Also, the change doesn't become effective
        until the user re-logs in.

extra notes: the original shell won't show a change in the group info
because the group membership is determined at first login. The
"groups username" worked always because it uses a system call "getgroups"
instead of using what was determined at login time. One person suggested
running ypinit on both master and slave servers after any group
modification. This *does* work, but is not nessesary.

thanx to all.
        
_____________________________________________________________________________
| shawn@litsun.epfl.ch -.- KLEIN BOTTLE FOR SALE ... \#######
| Shawn Edwin Koppenhoefer \_/ ... enquire within \######
| Sun System-Manager, EPFL (Ecole Polytechnique Federale de Lausanne) \#####
| EL-Ecublens, CH 1015 Lausanne SWITZERLAND (021)6934703 telefax=474660 \####
| from Canada dial: 011-41-21-693-4703 __________________________________|###
|_____________________________________/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:13 CDT