Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 11
  1. #1
    dreael is offline Registered User
    Join Date
    Nov 2000
    Location
    P.O.Box 931, CH-8201 Schaffhausen
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    MacOS X as a NIS (YP) client with NFS mounted /home file system

    Dear MacOS X users

    I recently have become a proud owner of Apple's new "table lamp". ;-)

    I'm using MacOS X in a heterogenous environment where a SuSE Linux 8.0 Professional box (standard i386 box) runs as my file server for all systems. I have stored all my productive data on it and there's also running a SCSI streamer tape backup every night. In addition this file server acts as my NIS master server for all other kind of UNIX and Linux as well as a Samba primary domain controller for all Windows systems.

    I'd like to configure my iMac as a NIS client in such a way that I can graphically login with my NIS user account or remotely SSH login with my NIS account. In addition, I wish to mount both my exported file systems /home and /archive by NFS on boot time and configure the standard storage directory in all MacOS applications to the NFS home drive rather than the local file system.

    Is this possible? Should this done on the command line level (editing some configuration files) or has Apple spent a special control panel for this task?

    Any help are appreciated. :-)
    Last edited by dreael; July 31st, 2002 at 01:04 PM.

  2. #2
    hgreenfi is offline Registered User
    Join Date
    Apr 2002
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This link helped me

    I recently set up a basic nfs export from my RH7.2 server onto my os x box. I found the information at http://www.sfu.ca/~hjohnson.osxnisnfs.html to be helpful. I followed the instructions for setting up nfs and found that they worked, but I can't speak for the NIS/YP stuff.

    Hope this helps :-)

  3. #3
    lethe is offline Registered User
    Join Date
    Oct 2001
    Location
    US
    Posts
    689
    Thanks
    0
    Thanked 0 Times in 0 Posts
    setting the machine to use NetInfo for logins requires you to change the lookup order of NetInfo. you can either do this by adding some files to /etc or by adding some directories to the NetInfo directory structure. read the lookupd man pages for more details. ask, if you need more specific instructions. also mounts are controlled by NetInfo as well, so you can accomplish all your needs this way. this can all be done even without the command line, since apple provided a GUI NetInfo manager, found in the /Applications/Utilities directory.

  4. #4
    wiz
    wiz is offline Registered User
    Join Date
    Jul 2002
    Location
    Sol
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i got a solution !! [read alot]

    ok some book of mine says this (i summarized it)


    1. Back-up ur NetInfo database (they always say that)

    2. note down the mount point and the location of the remote folder you want to mount

    3. create a plain text fil, something like this:

    {
    "opts" = ( "w" );
    "dir" = ( "/<mountpoint>/" );
    "name = ( "<remote_host>:<remote_dir_location>");
    "type" = ( "bfs" );
    }

    <mountpoint> is the location you want tp mount ther remote filesystem on ur local HD

    <remote_host> is the name of the remote computer (it could be an ip address too)

    <remote_dir_location> is the location of that folder on the remore host

    oh the (opts = 'w') thing is actually mounting the remote filesystem as write only you can use ( rw r w )

    4. now at the command prompt...

    nituil -create . /mounts/temp1
    niload -r /mounts/temp1 . < mnt.txt

    (assuming that u saved the above text file as mnt.txt

    5. the open the NetInfo manageer and check in the /mounts/<remote_dir_location>

    if everything is the same as in the text file GREAT

    6. reboot ur machine

    7. u can check if the remote file system is mounted by typing
    mount
    at the command prompt

    yep thats all...

    wow thats a lot .. i'm still learining

  5. #5
    wiz
    wiz is offline Registered User
    Join Date
    Jul 2002
    Location
    Sol
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    a few typos

    [
    3. create a plain text fil, something like this:
    not fil but file


    {
    "opts" = ( "w" );
    "dir" = ( "/<mountpoint>/" );
    "name = ( "<remote_host>:<remote_dir_location>");
    "type" = ( "bfs" );
    }
    oh "type" = ( "nfs" ); [not bfs]

    another typo

  6. #6
    hydo's Avatar
    hydo is offline Registered User
    Join Date
    May 2002
    Location
    Portland, OR
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MacOS X as a NIS (YP) client with NFS mounted /home file system

    Originally posted by dreael
    *snip*
    I'd like to configure my iMac as a NIS client
    *snip*
    It looks like you have the NFS thing sewn up. Here's a pointer to doing the NIS config: http://bresink.de/osx/nis.html

  7. #7
    bwanabob is offline Timelord
    Join Date
    May 2001
    Location
    Santa Barbara, CA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've set up NIS and remotely mounted homedirs several times.

    The information above is good stuff. The bresink.de site is really good for the NIS information! But there are some gotchas with NIS.

    (I have yet to test these problems with 10.2, but I think the problems would still apply, as they are problems from the server side)

    On the Mac side, only pull NIS maps that you intend to use. Also (as dumb as this sounds) only pull maps that the server offers. Under IRIX (Silicon Graphics) machines, you can control which maps get exported by editing a makefile. (Linux should be similar). If you export maps "passwd", "group", "hosts" and your Mac is looking for "passwd", "group", "hosts" and "netgroup".. the Mac will choke, and possibly not boot properly.

    So, make sure that if you need a map on your mac, that the NIS server actually serves it.
    Robert Monaghan
    Production Engineer for VFX.
    Hollywood, CA

  8. #8
    cctryan is offline Registered User
    Join Date
    Oct 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What is the name of the makefile you need to
    edit for IRIX machines. I am trying to get a
    eMac running OS 10.1.5 to be a nis client for my server with is running IRIX 6.5.15. However, I can not get the eMac to bind to it.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. The Authoritative Partitioning Discussion
    By mr. k in forum Mac OS X System & Mac Software
    Replies: 15
    Last Post: January 9th, 2009, 07:19 AM
  2. I installed Fink under root and.....
    By Hydroglow in forum Unix & X11
    Replies: 5
    Last Post: November 27th, 2002, 03:57 PM
  3. Replies: 2
    Last Post: September 1st, 2002, 07:45 PM
  4. MacOS vs UNIX file system on install?
    By Gwailo in forum Mac OS X System & Mac Software
    Replies: 8
    Last Post: April 3rd, 2002, 10:42 PM
  5. vignette client on mac os x
    By erim in forum Software Programming & Web Scripting
    Replies: 8
    Last Post: July 13th, 2001, 01:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •