From owner-freebsd-fs@FreeBSD.ORG Mon Jul 25 16:30:24 2011 Return-Path: Delivered-To: freebsd-fs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 786F2106566B for ; Mon, 25 Jul 2011 16:30:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E12F8FC0C for ; Mon, 25 Jul 2011 16:30:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6PGUOeM049882 for ; Mon, 25 Jul 2011 16:30:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6PGUOV6049876; Mon, 25 Jul 2011 16:30:24 GMT (envelope-from gnats) Date: Mon, 25 Jul 2011 16:30:24 GMT Message-Id: <201107251630.p6PGUOV6049876@freefall.freebsd.org> To: freebsd-fs@FreeBSD.org From: Gary Palmer Cc: Subject: Re: kern/159077: Can't cd .. with latest zfs version X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gary Palmer List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 16:30:24 -0000 The following reply was made to PR kern/159077; it has been noted by GNATS. From: Gary Palmer To: Michael Haro Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/159077: Can't cd .. with latest zfs version Date: Mon, 25 Jul 2011 12:25:34 -0400 On Wed, Jul 20, 2011 at 11:37:21PM -0700, Michael Haro wrote: > > >Number: 159077 > >Category: kern > >Synopsis: Can't cd .. with latest zfs version > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Jul 21 07:10:07 UTC 2011 > >Closed-Date: > >Last-Modified: > >Originator: Michael Haro > >Release: FreeBSD 8.2-STABLE amd64 > >Organization: > >Environment: > System: FreeBSD backups.mtv.bitsurf.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Sat Jul 16 19:26:28 PDT 2011 root@backups.mtv.bitsurf.net:/usr/obj/usr/src/sys/KERNEL amd64 > > > freebsd 8.2 stable as of july 16th > zpool version 28 > zfs version 3 > > >Description: > > trying to cd up one level using 'cd ..' gives permission denied > > >How-To-Repeat: > > use sh or tcsh, not bash... > > $ pwd > /home/mharo > $ cd .. > cd: can't cd to .. > $ ls -ald /home > drwxr-xr-x 4 root wheel 4 Nov 29 2009 /home > $ ls -ald /home/mharo > drwxr-xr-x 3 mharo users 15 Jul 20 22:49 /home/mharo > $ cd /home > $ pwd > /home > $ ls -ald mharo > drwxr-xr-x 3 mharo users 15 Jul 20 22:49 mharo > $ cd mharo > $ cd .. > cd: can't cd to .. > > so obviously I can cd into /home, just not via .. > > $ zfs list -r zroot/home > NAME USED AVAIL REFER MOUNTPOINT > zroot/home 162K 2.70G 26K /home > zroot/home/mharo 119K 2.70G 35.5K /home/mharo It may be worth unmounting /home/mharo and checking the permissions of the directory underneath the mount point. e.g. % mkdir /tmp/159077 % chmod 0 /tmp/159077 % ls -la /tmp/159077 total 274 d--------- 2 root wheel 512 Jul 25 17:22 . drwxrwxrwt 57 root wheel 249344 Jul 25 17:22 .. % mount /dev/md0 /tmp/159077 % ls -la /tmp/159077 total 276 drwxr-xr-x 3 root wheel 512 Jul 25 17:21 . drwxrwxrwt 57 root wheel 249344 Jul 25 17:22 .. drwxrwxr-x 2 root operator 512 Jul 25 17:21 .snap % and then as a regular user: $ cd /tmp/159077/ $ pwd /tmp/159077 $ ls -la ls: ..: Permission denied total 4 drwxr-xr-x 3 root wheel 512 Jul 25 17:21 . drwxrwxr-x 2 root operator 512 Jul 25 17:21 .snap $ ls -la .. ls: ..: Permission denied $ cd .. cd: can't cd to .. $ Regards Gary