[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] YP serving groups information...



Hello All,

I thought that my Mandrake 9 YP server was working just fine... But I've
discovered an annoying glitch. Can you suggest what might be wrong, or
even some diagnosis tactics?

Here's the deal:

The YP server is meant to serve out just three files, passwd, group and
hosts. The passwd bit works just fine, as does hosts. However, I can't
get the groups information to work. Argh!

james@client# groups
101

james@ypserver# groups
xgrp ASpace Admin

See what I mean? (No, I don't know why the secondary group names have
uppercase names, but they do - so there.)

On some clients (the Mandrake 9 ones) groups 101 is set as xgrp, so I
get this:

james@mandrake9client# groups
xgrp

However, it's clear that this information HASN'T been served over YP -
it's just that it is available in the local /etc/group.

How can I either

(a) Induce the YP Server to serve out groups effectively? (Believe me -
I've done database rebuilds and WATCHED group.bygid and group.byname
being made. They are there! I've also NOT forgotten
/etc/rc.d/init.d/ypserv restart - so surely they should be being picked
up.

or

(b) Induce the YP clients to pick up the information? (I faintly
remember something about appending files with a +... but the passwd file
doesn't have one, and it works.)

or

(c) Fix something else relevant that I haven't thought of.

Thanks for your help,

James
=====
-- 
James Wallbank
Redundant Technology Initiative
Access Space - 1 Sidney Street - Sheffield - S1 4RG - UK
T: +44 (0)114 2495522
F: +44 (0)114 2495533
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.

#!/usr/bin/perl -w
# Strip all line of this form from html messages
# From: "French, Alastair" <Alastair.French [at] racalinst.co.uk>
 
while (<>){
        $_=~s/(^.*:.*[ <])(\w.*)(@.*)/$1nospam$3/;
        print unless /^Delivered-To:/i ;
}