Operating System - HP-UX
1748000 Members
5037 Online
108757 Solutions
New Discussion юеВ

Re: NIS client configuration between HPUX master and linux clients

 
Sreer
Valued Contributor

NIS client configuration between HPUX master and linux clients

Hi Experts,

I have a HPUX box as nIS master server :
[root@sttr16:/root]#uname -a
HP-UX sttr16 B.11.11 U 9000/785 2000124292

And redhat linux boxes as nis clients.
root @s130fr0p04:~# uname -a;cat /etc/redhat-release
Linux s130fr0p04 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
root @s130fr0p04:~#

In master server i have added the linux hosts as below method:

edited /etc/hosts and put the new hosts in it:

/var/yp/ypmake hosts
cd /var/yp
/usr/ccs/bin/make -f Makefile

at client side::

I used authconf-tui utility and made the client as a NIS client.
[ selected NIS,

[*] Use NIS
[*] Use MD5 Passwords
[*] Use Shadow Passwords

after that Ican able to see the linux client became part of the NIS.

root @s130fr0p04:~# domainname
x.btv.cti.fr
root @s130fr0p04:~#

root @s130fr0p04:~# domainname
to.btv.cti.fr
root @s130fr0p04:~# ypcat passwd |tail -3
st04151:UKM5KtDn8sCZE:1078:310:Moreaux_Alexandre,B42-1,583216,b02w122,:/home/control/cdve/st04151:/bin/posix/sh
to12922:D7ckiSF2KkR4s:2226:201:Malmary_Cecile,M63-0,585384,rbtv36,:/home/devlog/prog/to12922:/bin/posix/sh
to21921:ybyntu50pH4AA:2397:411:Castagnino_Cyril,M24-6,586375,rbtv4,:/home/avionic/serv/to21921:/bin/posix/sh
root @s130fr0p04:~# ypcat hosts | grep -i s130fr0p04
root @s130fr0p04:~#

My NIS is poor.So could you pls correct me dear Gurus,where I went wrong?

Thanks in advance.

Rgds
Sree

3 REPLIES 3
Victor Fridyev
Honored Contributor

Re: NIS client configuration between HPUX master and linux clients

Hi,

Are you sure that HP-UX supports /etc/shadow as a map ?

Secondly, nisdomains on different LINUXes are different.
Third, check /etc/nsswitch.conf on the serves
Last, bbut not least, look at /etc/yp.conf on clients.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Sreer
Valued Contributor

Re: NIS client configuration between HPUX master and linux clients

Hi,

As I mentioned earlier, the nIS passwd, group maps are well working in newly configured Nis clients.

My main concern is about the visibility of the newly created/configured NIS clients in the created NIS domain.

ypcat hosts | grep -i "newly added client"

its not working in even from master.

All other things are OK.

Rgds
Sree
Steven Schweda
Honored Contributor

Re: NIS client configuration between HPUX master and linux clients

> it[']s not working in even from master.

That almost answers my first question. What,
exactly, does "not working" mean here?

Did you look at the output from:
ypcat hosts
before running it through "grep"?

> /var/yp/ypmake hosts

Does that _do_ anything? Does it push the
results out to the other servers? (Are there
other servers?) Perhaps:

yppush

On the client:

ypwhich

Is that the master, or some other server?

> edited /etc/hosts [...]

Look at the NIS "make" file. Does it use
"/etc/hosts" as the source for its "hosts"
data? (I'd expect that, but I know nothing.)