LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-08-2005, 07:00 PM   #1
hawarden
Newbie
 
Registered: Feb 2005
Location: Hawaii
Distribution: centos/fedora/redhat/solaris
Posts: 28

Rep: Reputation: 15
automount solaris and linux


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?

Thanks in advance!
 
Old 04-09-2005, 02:12 PM   #2
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
I beleive you can specify network shares in /etc/fstab/ you just have to pass the proper options such as passwords and usernames.
 
Old 04-09-2005, 02:31 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I don't know NIS concept but a working NFS setup would be :

/etc/auto.master :
Code:
/home     /etc/auto.home
/etc/auto.home :
Code:
foo    -fstype=nfs,rw,rsize=8192,wsize=8192,hard,intr   Server:/aux/home/foo
 
Old 04-09-2005, 03:13 PM   #4
hawarden
Newbie
 
Registered: Feb 2005
Location: Hawaii
Distribution: centos/fedora/redhat/solaris
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
I don't know NIS concept but a working NFS setup would be :

/etc/auto.master :
Code:
/home     /etc/auto.home
/etc/auto.home :
Code:
foo    -fstype=nfs,rw,rsize=8192,wsize=8192,hard,intr   Server:/aux/home/foo
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.

Thanks!
 
Old 04-09-2005, 03:24 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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 ?

Last edited by keefaz; 04-09-2005 at 03:35 PM.
 
Old 04-09-2005, 03:44 PM   #6
hawarden
Newbie
 
Registered: Feb 2005
Location: Hawaii
Distribution: centos/fedora/redhat/solaris
Posts: 28

Original Poster
Rep: Reputation: 15
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....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM
automount Solaris home directories onto RedHat ghouliajoolia Linux - General 3 09-07-2004 06:20 AM
How do I automount a network filesystem in Linux? gvaught Linux - Networking 5 12-25-2003 11:27 PM
Linux+Solaris : How can Linux login tu Solaris alnizam Solaris / OpenSolaris 2 06-04-2003 01:06 PM
Linux+Solaris : How can linux login to Solaris alnizam Linux - Software 2 05-28-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration