LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   strange! can't use auto.nis as the file name for autofs service (https://www.linuxquestions.org/questions/linux-general-1/strange-cant-use-auto-nis-as-the-file-name-for-autofs-service-655437/)

myhnet 07-13-2008 06:22 AM

strange! can't use auto.nis as the file name for autofs service
 
hi, guys, I find a very strange stuff in both CentOS and RHEL 5.1 (32bit, installed in VMware workstation):
the same content (as below) in /etc/auto.nis and /etc/auto.test
Code:

#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven 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
*              -rw,soft        server:/home/&

# 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

when I use /etc/auto.nis in /etc/auto.master:
Code:

/home  /etc/auto.nis --timeout=60
autofs doesn't work, but it works with /etc/auto.test or other suffix:
Code:

/home  /etc/auto.test --timeout=60
anyone met the same problem as mine? Is it a bug or just I did sth. wrong?
anything reply with be welcome! thx

Mr. C. 07-13-2008 11:21 PM

What do you mean "doesn't work".

myhnet 07-14-2008 11:29 PM

well, there is a directory named test in /home in the server.
but when I enter cd /home/test in the client it showed me that the file or directory is not available(which should be availalbe)

and, when use auto.test as the file name, everyting goes fine


All times are GMT -5. The time now is 11:51 AM.