1833863 Members
2171 Online
110063 Solutions
New Discussion

NIS AND automounter

 
SOLVED
Go to solution
Venu_2
Regular Advisor

NIS AND automounter

Dear admins,

I need your help once again

I have a B-class to be configured for NIS and k Class for NFS

Now i want to integrate nis and automounter

i have configured basic nis and tested the user login it is working fine

Now the big job automounter integration. i have gone to the docs and its very confusing . Can someone give me the steps to do right from creating automounter files

TIA

venu
5 REPLIES 5
Helen French
Honored Contributor

Re: NIS AND automounter

Hi Venu:

This document may help you (TKB #KBRC00001012):

http://us-support.external.hp.com/cki/bin/doc.pl/sid=1f7d52aa0c2abbddc0/screen=ckiDisplayDocument?docId=200000048086768

HTH,
Shiju

Life is a promise, fulfill it!
Sachin Patel
Honored Contributor
Solution

Re: NIS AND automounter

Very simple.

On your NIS server create auto.direct map

1. create /etc/auto.direct file
2. add entry like
/bonnie/home bonnie:/home

i.e automount filesystem /home from system bonnie.
3. create auto.direct
4. push that map

Now on your client check that if you have auto.direct map or not.
#ypcat -k auto.direct

Then edit /etc/auto_master file so it look like
/- auto.direct -nosuid,soft
i.e use auto.direct map and mount to / filesystem.

Then edit three line on /etc/rc.config.d/nfsconf file
AUTOMOUNT=1
AUTO_MASTER="/etc/auto_master"
AUTO_OPTIONS="-tl 3600 -M /nfs -f $AUTO_MASTER"

/sbin/rc2.d/S430nfs.client stop
/sbin/rc2.d/S430nfs.client start

This will creates mount point /bonnie/home in your client.

Then assign some point.
Though I don't care because I just pass 2500 yesterday and I am not going to reach 7500 very soon. But it is good to assign point.

Sachin
Is photography a hobby or another way to spend $
Venu_2
Regular Advisor

Re: NIS AND automounter

Hi sachin,

dont worry i will assign points for all you replies...so go ahead and reply me and get more points

now i want to know in detail the 3 point in you answer ie
create auto.direct

please use the same naming conventions

how to do this

cheers
Sachin Patel
Honored Contributor

Re: NIS AND automounter

You can use command makedbm to generate auto.direct map.

#makedbm /etc/auto.direct /var/yp/auto.direct
For more info man on makedbm

Or
#cd /var/yp
#make auto.direct (assuming that your make file is using /etc/auto.direct file as input, it is default).
This will generates map and push it to secondary server (assuming you have map for ypservers)

You can create secondary servers map
1. vi /tmp/ypservers
Add your secondary servers name
2.cat /tmp/ypservers | makedbm - /var/yp/`domainname`/ypservers
(space and ` are important).

Sachin
Is photography a hobby or another way to spend $
Venu_2
Regular Advisor

Re: NIS AND automounter

Hi admins,

Thanks for all who replied. i could complete the configuration with you help

Thanks once again

Regards

Venu