Nis Map and linux

Nis Map and linux

Post by Vincent Aaro » Sun, 19 Oct 2003 00:15:12



Hi all
I'm facing on an issue. So I need your help.
I have a NIS server on Sun Solaris. I currently using direct and indirect
NIS map.
for example: On my NIS server ( Solaris Operating System)
    - on /etc/nis/auto_master file
        /home      auto_home -rw,intr,nosuid
        /-             auto_direct

    - on /etc/nis/auto_home
        *            nfsserver:/export/home/&

    - on /etc/nis/auto_direct
        /usr/local     -rw,soft,bg      nfsserver:/usr/local/

On a Sun NIS client, I always add in /etc/auto_master the line +auto_master.
And modify the /etc/nsswitch.conf,  to take care of NIS automount.

But, I'm not able to automount indirect file system from NIS map on a RedHat
Operating System.
   for example: on the /etc/auto.master file
        /home    yp:auto.home
        /-            auto.direct            this line doesn't work on Linux

Can you please help me?
Cheers

 
 
 

Nis Map and linux

Post by Michae » Sun, 19 Oct 2003 05:06:32



> But, I'm not able to automount indirect file system from NIS map on a RedHat
> Operating System.
>    for example: on the /etc/auto.master file
>         /home    yp:auto.home
>         /-            auto.direct            this line doesn't work on Linux

A couple of things, do you have an /etc/yp.conf file?  If so, does it
contain your ypservers?

2) Do you have domainname set?  What about ypdomainname?

3) I found, through experimentation, that /etc/auto.master should be in
this form.  This might not exactly answer your question, but was how I
integrated a linux box into a Solaris auto.home NIS installation:

/home   yp      auto.home       --timeout 60

 
 
 

Nis Map and linux

Post by Andrei Ivan » Wed, 22 Oct 2003 08:25:29



> But, I'm not able to automount indirect file system from NIS map on a RedHat
> Operating System.
>    for example: on the /etc/auto.master file
>         /home    yp:auto.home
>         /-            auto.direct            this line doesn't work on Linux

As Michael wrote, you're using incorrect syntax for _indirect_
map. And as I can recall, direct maps are not supported by autofs
(at least they weren't supported three years ago). You might
try to use am-utils instead.

Check this page: http://geocities.com/ivanov_andrei/nis/

--
andrei

 
 
 

1. amd and NIS maps: No source data for map amd.home

        Hi - I'm currently attempting to get amd to read an NIS
(really Solaris 2.x NIS+ in NIS compat mode - yeah yeah, I know)
map amd.home and apply it to /home.  Unfortunately, I'm not able
to get it to see the NIS map.  I get the error "No source data
for map amd.home".  Does anyone know the proper fix to this
problem?  I'm positive my ypbind is bound to the server, as I can
manually ypcat -k amd.home and see the amd /home map.  I'm
invoking amd like so:
amd -a /.automount -y math.vt.edu -l syslog /home amd.home

        Any thoughts?  Thanks in advance!

-matt

--
Matthew C. Mead


http://www.goof.com/~mmead/

2. MC Question

3. Need suggestions for passwd map when sharing NIS maps in multiple domains.

4. Solaris 2.4 cdio(7) functions (HELP PLEASE!)

5. can NIS and NIS+ share maps?

6. secure the network

7. local override of NIS (not NIS+) maps

8. linux win2k network and internet sharing setup

9. NIS+ NIS compatibility mode and the 'passwd' map

10. How I can get all the NIS+ maps from NIS client

11. NIS map mail.aliases specified, but NIS not running

12. How to use NIS shadow map (Linux server, AIX clients)

13. AMD for Linux and NIS maps?