From owner-freebsd-questions Fri Jun 7 7:59:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.hirshfields.com (mailhost.hirshfields.com [63.226.159.37]) by hub.freebsd.org (Postfix) with ESMTP id 9C1B037B405 for ; Fri, 7 Jun 2002 07:59:09 -0700 (PDT) Received: from ultra.hirshfields.com (ultra.hirshfields.com [192.168.195.101]) by mailhost.hirshfields.com (8.11.4/8.11.4) with SMTP id g57Ex8e57473 for ; Fri, 7 Jun 2002 09:59:08 -0500 (CDT) Received: (qmail 23132 invoked from network); 7 Jun 2002 14:59:05 -0000 Received: from spicer.hirshfields.com (HELO hirshfields.com) (192.168.195.244) by ultra.hirshfields.com with SMTP; 7 Jun 2002 14:59:05 -0000 Message-ID: <3D00CA3C.7050106@hirshfields.com> Date: Fri, 07 Jun 2002 09:59:08 -0500 From: C Peter Biessener User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Subject: amd link behavior Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG How do I get amd created links to behave the same way as user created links? Please read the example below. If I create a link to a directory myself, when I cd to the link and then ask what my pwd is, the answer shows I am in the 'link' for a directory: # pwd /home/peter # ln -s template/util util # ls -l . . . lrwxrwxrwx 1 root wheel 25 Jun 6 16:46 util -> /home/peter/template/util . . . # cd util # pwd /home/peter/util However, if I set up amd to automount a filesystem, the behavior is different. amd does create a link, but when you cd there, and ask for the pwd, it reports the 'internal' mount directory. # amd -r -l syslog /net /etc/net.map # cat /etc/net.map history type:=nfs;rhost:=server;rfs:=/data/history;sublink:={host.} # cd /net # ls -l lrwxrwxrwx 1 root wheel 29 Jun 6 16:49 history -> /a/server/data/history/host_a # cd history # pwd /a/server/data/history/host_a The behavior I would like to see is if the amd created links behaved the same way as a user created link. In the above example, when I cd'd to history, I would like pwd to report my directory as '/net/history'. My reasoning is: from the amd internal mount point, I can cd ../host_b and mess with the files belonging to host_b. That behavior is MOST undesirable. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message