NIS Question

NIS Question

Post by Chad A. Roberts » Wed, 29 Mar 1995 01:14:22



I'm having some trouble with NIS and could use some assistance.  I've
exhausted my resources for help locally, and couldn't find anything in
the FAQ.  I have a feeling that what I've got is just a simple
configuration problem.  

I'm using NIS on a 9.01 system with a single master server and 2
clients.  All operations work without flaw on each machine, including
password, and host file mappings.  Using any of the yp commands on
either of the clients (i.e, ypcat) gives accurate results, and users
experience no problems in normal operations.  What I'm having trouble
with are supplementary group affiliations in the group file and map.  On
the server I have users defined as members of multiple groups with each
group having a distinctive gid.  Doing a 'ypcat group' on the clients
shows the correct info, however, if I run 'id <username>' on one of the
NIS clients the only group id that comes back is the default gid (and
groupname, which is only defined on the server) but not the supp.
groups.  Using the id command on the server of course comes back with
all the correct groups because everything is defined locally in its
/etc/group file.  More importantly than the id problem is the fact that
supp. group priviledges to files and directories do not take effect on
either of the clients, while a long file listing of these files does show
the correct ownership, group, and permissions for the files.  Just for the
sake of clarifying things, I will also note that each of the files
group, passwd, etc. are absolutely bare on the clients except for
essential local information and the appropriate NIS '+' token line.  I
am also only using a single NIS domain.  I'm also confused by the
'groups' command in general, does it not support NIS?  On either of the
clients doing a 'groups <username>' comes back with a blank line.

Thanks for any help,
Chad Robertson

 
 
 

NIS Question

Post by Jim Boye » Wed, 29 Mar 1995 09:09:44


Look at /etc/logingroup.  If they are not part of multiple groups in this
file, the user will have to use "newgrp" to change groups.  Some people
link (or sym-link) /etc/logingroup to /etc/group so they are automatically
a member of all the groups when they login.

Hope that helps,

-- Jim
 -----------------------------------------------------------------------------

|         /  /        Sonoma County Engineering Services   Telnet: 1-794-4458 |
| HEWLETT/hp/PACKARD  1212 Valley House Dr.                AT&T: 707-794-4458 |
|       /__/          Rohnert Park, CA 94928-4999          HP Mailstop: 1UR-E |
 -----------------------------------------------------------------------------

 
 
 

NIS Question

Post by Alan Mass » Wed, 29 Mar 1995 17:27:28



: I'm having some trouble with NIS and could use some assistance.  I've
: exhausted my resources for help locally, and couldn't find anything in
: the FAQ.  I have a feeling that what I've got is just a simple
: configuration problem.  

: I'm using NIS on a 9.01 system with a single master server and 2
: clients.  All operations work without flaw on each machine, including
: password, and host file mappings.  Using any of the yp commands on
: either of the clients (i.e, ypcat) gives accurate results, and users
: experience no problems in normal operations.  What I'm having trouble
: with are supplementary group affiliations in the group file and map.  On
: the server I have users defined as members of multiple groups with each
: group having a distinctive gid.  Doing a 'ypcat group' on the clients
: shows the correct info, however, if I run 'id <username>' on one of the
: NIS clients the only group id that comes back is the default gid (and
: groupname, which is only defined on the server) but not the supp.
: groups.  Using the id command on the server of course comes back with
: all the correct groups because everything is defined locally in its
: /etc/group file.  More importantly than the id problem is the fact that
: supp. group priviledges to files and directories do not take effect on
: either of the clients, while a long file listing of these files does show
: the correct ownership, group, and permissions for the files.  Just for the
: sake of clarifying things, I will also note that each of the files
: group, passwd, etc. are absolutely bare on the clients except for
: essential local information and the appropriate NIS '+' token line.  I
: am also only using a single NIS domain.  I'm also confused by the
: 'groups' command in general, does it not support NIS?  On either of the
: clients doing a 'groups <username>' comes back with a blank line.

        We have had this problem (more than once!). Eventually we tracked it
        down to the /etc/group file on the NIS master. There are (at least) two
        ways to*this up for NIS. One is to NOT have a carriage return
        on the last line (possible if you edit the file with an editor such
        as vuepad) and the other is to have a BLANK line at the end of the file.
        I bet you have done one of these !

--
Alan Massey, Computer Systems Manager, Philips Semiconductors, Southampton, UK

Tel   : +44 (0)1703 316450                      Fax : +44 (0)1703 316305

 
 
 

NIS Question

Post by Nils-Olof Johanss » Sat, 01 Apr 1995 04:00:00



Quote:>I'm having some trouble with NIS and could use some assistance.  I've
>exhausted my resources for help locally, and couldn't find anything in
>the FAQ.  I have a feeling that what I've got is just a simple
>configuration problem.  

.............

Quote:>experience no problems in normal operations.  What I'm having trouble
>with are supplementary group affiliations in the group file and map.  On
>the server I have users defined as members of multiple groups with each
>group having a distinctive gid.  Doing a 'ypcat group' on the clients
>shows the correct info, however, if I run 'id <username>' on one of the
>NIS clients the only group id that comes back is the default gid (and
>groupname, which is only defined on the server) but not the supp.

......

>Thanks for any help,
>Chad Robertson


Making /etc/logingroup a link to /etc/group should solve the problem. See
man logingroup for details.

--
--------------------------------
Nils-Olof Johansson
SECTRA AB, Teknikringen 2, S-583 30 Linkoping, SWEDEN

 
 
 

1. NIS/NIS+ Question

I have a machine that I am dual booting 11.0 and 11.11.  I'm trying to
set up NIS to function on the latter.  The machine uses that same
server name for both the 11.0 and 11.11 loads.

Would there be any issue in having a dual-boot machine with the same
name with NIS/NIS+?

2. HELP PLEASE

3. NIS+ question

4. MSSCCPRJ.SCC becomes mssccprj.scc

5. Nis Question

6. Connections by VPN?

7. NIS+ Question

8. Bitmap.FromHbitmap and handle ownership

9. Basic NIS questions

10. NIS question.

11. senmail, aliases, NIS question

12. NIS across lans/subnets - config question

13. NIS/YP Question