LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-09-2003, 07:22 PM   #1
mbs_lq
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Angry Strange NIS/automount problem


I wonder if anyone can help me.

I have recently established a NIS cluster.
Now I find that when I log in to one of the clients
/home/user1 mounts but /home/user2 doesn't, even though
both are mounted on /home1 on this same client.

When I log in to the NIS master I can see both
/home/user1 and /home/user2.

Has anyone seen anything like this before?

Thanks,

Martin
 
Old 07-09-2003, 09:56 PM   #2
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
What does your NIS server's /etc/exports look like? Please post. Also post your client's /etc/auto.* files.
 
Old 07-09-2003, 10:03 PM   #3
mbs_lq
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
The client is amelie and the master is dixie.

[root@dixie yp]# more /etc/exports
/home1 @tig(rw,no_root_squash) trbackup(ro,no_root_squash)
#
# Data Disks
#
/data1 @tig(rw,no_root_squash)
/data2 @tig(rw,no_root_squash)

[root@amelie etc]# more auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
# /misc /etc/auto.misc --timeout=60
$Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/misc /etc/auto.misc --timeout=60
/triumfcs /etc/auto.triumfcs --timeout 600

[root@amelie etc]# more auto.misc
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd[root@amelie etc]# more /etc/auto.triumfcs
linux -ro,soft,intr fserver:/home/export
alpha -ro,soft,intr fserver:/home/exporta
home2 -ro,soft,intr fserver:/home2
sciserv -ro,soft,intr fserver:/sciserv
 
Old 07-09-2003, 10:26 PM   #4
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
On your client you should have the following line in /etc/auto.master:

/home /etc/auto.home --timeout=60

Also on the client, you need to create /etc/auto.home to look like:

user1 -rw,soft,intr dixie:/home1/user1
user2 -rw,soft,intr dixie:/home1/user2

Then on the client make sure /usr/sbin/automount is running.

I assume the client is in the netgroup 'tig'.

Finally, you shouldn't have a /etc/passwd entry on the client for these users. And the directory /home/user1, for instance, shouldn't exist. It should be created automatically by the automounter.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automount and NIS james.farrow Fedora 0 10-26-2005 02:48 PM
Maximun NIS Map number for automount jeanpba Linux - Networking 0 02-25-2005 04:26 AM
getting home directories to automount with NIS schurt Linux - Networking 3 04-23-2004 01:55 PM
NIS automount zapperabhi Linux - Software 0 01-31-2004 04:25 AM
Strange NIS Problem vicky_ksu Linux - Networking 0 03-11-2003 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:46 AM.

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