Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Nis+

  • 12-11-2003 1:27pm
    #1
    Closed Accounts Posts: 285 ✭✭


    I have just setup NIS+ on a Solaris 8 network at work, I followed the SAG (FNS and NIS+) to the letter...

    I used the standard scripts . the root master server seems fine. I even set up a replica server. The clients are configured properly and see the server. The users are configured with nisclient also.

    Everything works except when the user logs onto the client the home directory cannot be mounted....

    Any ideas?


Comments

  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Sounds like you're just having an automounter problem.
    What's the exact error?

    Have you tried mounting the home directories manually
    and then logging in?

    NiallB


  • Closed Accounts Posts: 285 ✭✭marauder


    the exact error on rlogin is
    "No directory! Logging in with home=/"
    on the console its
    cannot find home directory, click ok to login witha failsafe session or cancel to restart login"

    I have checekted the tables for the automounter and don't see anything wrong - am I missing something?

    # niscat auto_master.org_dir
    /home auto_home
    /export/home auto_home

    # niscat auto_home.org_dir
    marauder wolf:/export/home/marauder


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Is the resource wolf:/export/home/marauder
    mountable manually from your workstation?

    run showmounts -e wolf from your workstation
    to see if it's available from there.

    Take a check of /etc/exports or /etc/dfs/dfstab on wolf
    if you have permissions to see how it handles subdirs.
    While you're there, run ls /export/home and make
    sure your directory is actually there!

    What happens when you login to wolf as marauder ?
    Do you have a home directory then?

    Is the server Solaris 8, or is it a SunOS 5.8 machine?
    There IS a difference, and it's just here in the automounter behaviour!

    NiallB


  • Closed Accounts Posts: 285 ✭✭marauder


    Is the resource wolf:/export/home/marauder
    mountable manually from your workstation?



    yes I can mount it on the workstation when I am root



    run showmounts -e wolf from your workstation
    to see if it's available from there.


    showmount -e returns the following error on the client machine:
    showmount: client: RPC: Program not registered


    Take a check of /etc/exports or /etc/dfs/dfstab on wolf if you have permissions to see how it handles subdirs.

    /etc/dfs/dfstab has the following entry
    share -F nfs /export/home
    and there is no /etc/exports



    While you're there, run ls /export/home and make
    sure your directory is actually there!


    Yes its there alright

    What happens when you login to wolf as marauder ? Do you have a home directory then?
    when I log directly onto the server then there are no problems and the home directory is available

    Is the server Solaris 8, or is it a SunOS 5.8 machine?
    There IS a difference, and it's just here in the automounter behaviour!


    Well the DVD says Solaris 8 on the cover and on the disk, but when the machine is booting it syas SunOS 5.8 version generic 10xxx_xx


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb



    Is the resource wolf:/export/home/marauder
    mountable manually from your workstation?

    yes I can mount it on the workstation when I am root
    OK, if you can be root, then could you just make an entry
    in /etc/vfstab on your workstation such as
    wolf:/export/home - /home nfs - yes -
    to mount it on boot?

    showmount -e returns the following error on the client machine:
    showmount: client: RPC: Program not registered
    That's because you left out the hostname wolf, I think.
    By default it'll check the local machine.
    All the error is saying is that your client is not an NFS server.

    /etc/dfs/dfstab has the following entry
    share -F nfs /export/home
    and there is no /etc/exports

    That looks fine.

    I still think your problem is automounter related.
    Is wolf running an automounter?
    Check your local script for autofs in /etc/init.d.
    (Maybe try running THAT manually.)
    Are maps given out using NIS?
    Can other users (besides marauder) gain access in an
    expected manner?
    (If so, you may need to just remake your NIS maps.)

    Adding the vfstab line above should get you sorted,
    but fixing the automount situation (if one exists) will
    keep you covered from any workstation.

    NiallB


  • Advertisement
  • Closed Accounts Posts: 111 ✭✭solaris


    Originally posted by niallb


    Is the server Solaris 8, or is it a SunOS 5.8 machine?
    There IS a difference, and it's just here in the automounter behaviour!

    NiallB [/B]

    There is no difference between Solaris 8 and SunOS 8, they are the same thing. uname -r will ALWAYS report the SunOS version.


  • Closed Accounts Posts: 111 ✭✭solaris


    Originally posted by marauder


    showmount -e returns the following error on the client machine:
    showmount: client: RPC: Program not registered


    Have you rebooted since adding the entries to the dfstab ? If not, the nfs daemons may not be running. The command dfshares will show what is being exported. If it shows nothing, run /etc/init.d/nfs.server start.


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Originally posted by solaris
    There is no difference between Solaris 8 and SunOS 8, they are the same thing. uname -r will ALWAYS report the SunOS version.

    I would have agreed with you without hesitation until very recently.
    All uname -r is telling you is the kernel version,
    (isn't that all OS Release really means?)
    which is of course the same.

    I recently suspected (after needing to satisfy some dependencies on a 5.8 machine
    for a freshly installed application which I would have expected to run out of the box on Sol 8)
    that there are slight differences in installed environments for the two.
    I found one machine using the /etc/exports file and the other using the /etc/dfs/dfstab.
    Very likely all I'm seeing is one freshly installed and one upgraded system,
    with one using automount and the other autofs.
    but after assuring the owners of the machines that Solaris 8 and SunOS 5.8 were identical,
    I'd like any feedback to rebuild that certainty!

    Older versions of Solaris and SunOS definitely differed in this particular area (NFS config and automount vs. autofs.)
    I know that's ancient history, but it just occured to me as
    a possible explanation for what I observed.

    Any thoughts solaris?

    NiallB


  • Closed Accounts Posts: 111 ✭✭solaris


    SunOS 4.x.x (Solaris 1.x) used /etc/exports
    SunOS 5.x (Solaris 2.x) uses /etc/dfs/dfstab

    The term "SunOS" was commonly used to refer to SunOS 4.x, which end of lifed many many years ago at ver 4.1.4. The OS is rarely referred to as SunOS these days, and it is not possible to buy a separate "SunOS" product, just Solaris.

    I think that many moons ago, it was possible to buy a version of the OS without the bundled Openwindows environment, and this was referred to as SunOS 4.x. Solaris 1.x was used to refer to the bundled SunOS/Openwin environment. But this is going back a long way so I wont swear to that. But certainly from Solaris 2.0 and above there has only been one product.


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Sweet,
    that agrees with what I had originally thought I knew for certain.
    I guess I just came across a machine that had been heavily
    customised by someone with a preference for the older layout.

    Thanks,
    NiallB


  • Advertisement
Advertisement