Need help:Configuring autofs to automount the home directories of NIS users.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help:Configuring 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.mount entries:
/rhome /etc/auto.home
I have been trying all the ways, but no clue whats going wrong.
Plz help me asap.
You can use wildcards, but can't remember whether if it matches and fails to mount, whether it continues or not.
I assume the first entry is to resolve the /home/station100 mount. If so and the automounter doesn't continue after a match, something like this should work..
The problems was partially resolved.
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
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/&
Last edited by Savita Eli; 07-23-2009 at 01:03 PM.
I am trying for 3 days to solve this problem but with no success I have search the web and amazingly didn’t find the answer to this one
If you solved it please let me know I need it urgently
Thank you
– 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
Hopefully you're not taking the top part of this as a *requirement*. Because the way I read it, it seems more like someone is just letting you know some parameters as opposed to being something that you need to accomplish.
it's either
auto.home:
* 172...:/rhome/station100/&
or
auto.direct (by declaring "/-" in the auto.master):
/rhome 172...:/rhome/station100/&
Other than that I'm not sure why your system isn't working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.