Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have a mixed environment with a Solaris file server and some Solaris and various flavored Linux clients. My server runs NIS and serves home directories. I want to be able to have my Linux clients mount most of the users home directories from the file server using NIS for the automounting, but also have a handful of home directories that are on the client that are mounted.
So, supposed I have users foo and bar, and hosts Server (Solaris) and Client (FC2). Foo's home directory is on Server and bar's home directory is on Client. When foo logs in to Client, /home/foo should be Server:/aux/home/foo. When bar logs into Client, /home/bar should be Client:/aux/home/bar.
Client's nsswitch.conf file contains an entry "automount files nis".
Client's /etc/auto.home file only contains "bar -intr localhost:/aux/home/&".
I've tried a couple things with Client's /etc/auto.master file. "/home /etc/auto.home" will mount the local directory, but not the remote. "/home yp:auto.home" will mount the remote directory.
What do I need to have in Client's /etc/auto.master and/or /etc/auto.home files in order to mount both the local and remote home directories?
NIS basically means I have one set of maps (auto.home etc) that I maintain on one master server and all my clients get their information from that server, so I only need to maintain information in one place.
The problem with having the remote information in the local auto.home is that then I end up maintaining multiple copies, one on the master and then one on each client for which I need to have a different configuration.
Basically the problem boils down to why doesn't the entry in nsswitch.conf work properly? On my Solaris computers I can have an /etc/auto.home and the nsswitch.conf file has "automount files nis" so anything I have in the local file takes precedence, but if an entry isn't found in the local file, it automatically checks the nis table for that map. That is the behavior I need for the Linux computers as well, but so far I am at a loss as to how to make it do this.
The automounter in Linux is autofs, it has a kernel part (compiled into it or as a module) and
a software part (automount deamon which need to be started after each boot, with an
init script)
Do you have autofs package installed in your system and is autofs enabled in your kernel ?
I think so. The Linux clients are running a standard FC2 installation. I checked with rpm and I have autofs 4.something
Also, I can make the automounting work so that I can have either a local /etc/auto.home OR a NIS auto.home, but I can't figure out how to set it up to do both at the same time, which is what I need to do. That's why I have the nsswitch.conf set up the way I do, but it's not working the way I expect it to....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.