Linux - GeneralThis 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
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 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.
[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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.