Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I have a scenario: –NIS server 172.168.1.132 NFS-exports /rhome/station100 to your system and suppose have 3 users (nisx) nis1,nis2,nis3,where x is ur system id. -- nis1's home directory is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    7

    Post How to Configure autofs to automount the home directories of NIS users.


    Hi,
    I have a scenario:
    –NIS server 172.168.1.132 NFS-exports /rhome/station100 to your system and suppose have 3 users (nisx) nis1,nis2,nis3,where x is ur system id.
    -- nis1's home directory is 172.168.1.132:/rhome/station100/nis1
    -- nis2's home directory is 172.168.1.132:/rhome/station100/nis2
    -- nis3's home directory is 172.168.1.132:/rhome/station100/nis3
    – nis1's home directory should be automounted locally beneath /rhome as /rhome/nis1
    – home directories must be writable by their users
    – While you are able to log in as any of the users nis1 through nis3, the only home
    directory that is accessible from your system is nisx, where x is ur system id.

    Example: station100 would configure the automounter such that nis1’s home directory
    /rhome/nis1 gets mounted automatically upon login. The NFS share would be
    172.168.1.132:/rhome/station100/nis1

    I have been trying this frm past 2 days. Not able to solve.
    My auto.home entries:
    * 172.168.1.132 /rhome/&
    * 172.168.1.132 /rhome/station100/&

    My auto.master entries:
    /rhome /etc/auto.home

    I have been trying all the ways, but no clue whats going wrong.
    Plz help me asap.

    Thanx,
    Savita.

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    I have deleted the five other threads you made identical to this one. Please do not post the same question more than once. It is considered spamming, and is a bannable offense. Best of luck with your issue.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    7
    Hi,

    My problem is with autofs +NIS.Here are the details:

    My machine configurations:
    ---------------------------------
    NIS server: 172.168.1.132
    Shares: /rhome/station100/

    NIS Client: 172.168.1.129
    Needs to mount nis user dir under /rhome/nis which on server is under /rhome/station100/nis

    My auto.master entries:
    /rhome/ /etc/auto.home -rw

    My auto.home entries:
    station100 172.168.1.132:/rhome/&
    * 172.168.1.132:/rhome/station100/&

    I am facing 2 problems with this.
    Details:
    -----------
    Problem 1> Even though,nis1's home dir is mounted under /rhome/nis1, Could not able to change to home dir upon login on client(172.168.1.129) and nis user is placed in '/' of client.

    [root@aca80181 ~]# ssh -l nis1 172.168.1.129
    nis1@172.168.1.129's password:
    Last login: Thu Jul 23 11:42:09 2009 from aca80181.ipt.aol.com
    Could not chdir to home directory /rhome/station100/nis1: No such file or directory
    -bash-3.2$ pwd
    /

    Problem 2> Though only one user nis1 tried to login, all the users are getting their home dirs in /rhome/

    [root@aca80181 ~]# ls /rhome/
    nis1 nis2 nis3

    How to resolve this issue?????
    Plz reply.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    7

    Smile automount NFS shares

    Hi,

    I want to automount nfs home dir:
    server:/myhome/nis1

    to client as /users/nis1
    auto.home
    ----------------
    * -fstype=nfs,rw server:/myhome/&
    auto.matser
    ------------------
    /users /etc/auto.home -rw --timeout=300

    But upon login I get the error : "Could not chdir to /myhome/nis1 No such file or dir"
    I login as:
    #ssh -l nis1 <client_ip_addr>

    But if the home dir name is same(/myhome on both client & server) I am able to login with the proper home dir.

    What is wrong?

  6. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    7
    Still nothing on this. I can't believe no one has tried to do this before. It seems like it would be a common issue.

    Please help!!

    bump....

Posting Permissions

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