Operating System - HP-UX
1821985 Members
3643 Online
109638 Solutions
New Discussion юеВ

How to add HP-Unix servers to NIS domain.

 
GnanaShekar
Regular Advisor

How to add HP-Unix servers to NIS domain.

Hi,

We have a RHEL 4 server serving as NIS and NFS server. It has the users
home directories that are shared and automounted on all other Linux and
Solaris servers in the lab as part of NIS login.

The HP-Unix servers we have currently, are not part of the NIS domain. I am new
to HP-Unix, please suggest how to add HP-Unix servers to the NIS domain, so that
users can login to HP-Unix server using NIS account and get their home directory
also automounted.

Thanks & Regards,
-GnanaShekar-
6 REPLIES 6
MarkSyder
Honored Contributor

Re: How to add HP-Unix servers to NIS domain.

My knowledge is of using an HP-UX server as the NIS server, but maybe that will help you.

1. Login to your NIS server and change to the directory which contains your domain details (filename will be of the form db.domain)

2. Make a safe copy of this file

3. vi the file and add the name and IP address of the HP-UX server. Make sure you increment the serial number of the file.

4. You may also have extra files for different subnets. If so, amend the file for the subnet containing the HP-UX server.

5. reload.dns (you may need to locate this file).
The triumph of evil requires only that good men do nothing
Indrajit_1
Valued Contributor

Re: How to add HP-Unix servers to NIS domain.

Hi;

For NIS..

#domainnmae
#domainname (see the output)
#/var/adm/ypinit -c

Enter the ip address of NIS server
#vi /etc/nsswitch.conf
host file NIS
save and come out.
u can also use.
#sam

For NFS in Server site..

#vi /etc/exports
/export/home ipaddress_cliet(rw,root_no_squash,async)
save and come out
#service nfs restart
In client (hp unix)
#vi /etc/fstab

(modify the fstab file for auto mount)
#mkdir /export/home
#mount ipaddress_server:/export/home /export/home
#showmount.

Hope this will help u to resolve ur issue..

cheers
indrajit
Never Ever Give Up
Simon Wickham_6
Regular Advisor

Re: How to add HP-Unix servers to NIS domain.

Hi,

On the NIS side Modifying the ypservers map.

Step 1. cd /var/yp/`domainname` # makedbm -u ypservers > /tmp/ypservers.

Step 2. vi /tmp/ypservers # makedbm /tmp/ypservers ypservers
Simon Wickham_6
Regular Advisor

Re: How to add HP-Unix servers to NIS domain.

Sorry missed a bit out. I would do a ypcat -k ypservers >/tmp/ypservers.map and Modified /tmp/ypservers.map and then make
the changes live.


cat /tmp/ypservers.map |makedbm - /var/yp/`domainname`/ypservers


Running ypcat -k ypservers at this point should show the changes however
the servers I deleted are still being displayed.

Regards,
Simon

DCE
Honored Contributor

Re: How to add HP-Unix servers to NIS domain.


GnanaShekar,

The instructions in the prior notes will work

But a word of caution - if the systems are trusted (or if you want to enhance security at some point and make them trusted), NIS will not work with the systems.

I believe you need to use NIS+ or LDAP in order to work with trusted systems.

V. Nyga
Honored Contributor

Re: How to add HP-Unix servers to NIS domain.

Hi,

to configure these servers as NIS-client you can use 'SAM' - area: Networking and Communications - NIS (or NIS+)

or

set_parms addl_netwrk
(see 'man set_parms')

You have to know the nis domain name.
Also you have to add a '+' in /etc/passwd, /etc/hosts and /etc/group.

Then you have to send the nis-informations from the nis-server with 'ypmake'.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***