From nobody@FreeBSD.org  Thu Mar 20 06:09:06 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5C85A106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Mar 2008 06:09:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 492378FC33
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Mar 2008 06:09:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2K695ec088640
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Mar 2008 06:09:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2K695Hf088639;
	Thu, 20 Mar 2008 06:09:05 GMT
	(envelope-from nobody)
Message-Id: <200803200609.m2K695Hf088639@www.freebsd.org>
Date: Thu, 20 Mar 2008 06:09:05 GMT
From: Yoshihiro Ota <ota@j.email.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pwd(1)/getcwd(2) fails with Permission denied
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121898
>Category:       bin
>Synopsis:       [nullfs] pwd(1)/getcwd(2) fails with Permission denied
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 20 06:10:03 UTC 2008
>Closed-Date:    
>Last-Modified:  Tue Sep  3 04:00:00 UTC 2013
>Originator:     Yoshihiro Ota
>Release:        FreeBSD 7.0
>Organization:
>Environment:
FreeBSD XXX 7.0-RELEASE FreeBSD 7.0-RELEASE #407: Mon Feb 25 09:50:08 EST 2008     root@XXX:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Read permissions are give to everyone where it is necessary for a user
to do "pwd" but "pwd" fails with permission denied.

I think this also happened in 6.x releases, too.
>How-To-Repeat:
% df
Filesystem          1K-blocks      Used    Avail Capacity  Mounted on
/dev/ad4s4a           2026030   1859118     4830   100%    /
devfs                       1         1        0   100%    /dev
/dev/ad4s4d           5077038   3678668   992208    79%    /usr
/dev/ad4s4e.journal  10154156   8550560   791264    92%    /ports
/ports/db/pkg        10154156   8550560   791264    92%    /var/db/pkg
/ports/X11R6         10154156   8550560   791264    92%    /usr/X11R6
/ports/local         10154156   8550560   791264    92%    /usr/local
% cd /usr/local
% pwd
/usr/local
% ls -sld .
2 drwxr-xr-x  35 root  wheel  1024  3 10 12:52 .
% ls -lsd share
 6 drwxr-xr-x  292 root  wheel  6144  3 19 13:12 share
% cd share
% pwd
pwd: .: Permission denied
% cd /ports/local/share/
% pwd
/ports/local/share
% su -l root
$ cd /usr/local/share
$ pwd
/usr/local/share
$ cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s4b             none            swap    sw              0       0
/dev/ad4s4a             /               ufs     rw              1       1
/dev/ad4s4d             /usr            ufs     rw,noatime      2       2
/dev/ad4s4e.journal     /ports          ufs     rw,noatime      2       2
/ports/db/pkg           /var/db/pkg     nullfs  rw,noatime      0       0
/ports/X11R6            /usr/X11R6      nullfs  rw,noatime      0       0
/ports/local            /usr/local      nullfs  rw,noatime      0       0
/ports/compat           /usr/compat     nullfs  rw,noatime      0       0


>Fix:
Unknown.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:24:49 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121898 

From: Berend de Boer <berend@pobox.com>
To: bug-followup@FreeBSD.org, ota@j.email.ne.jp
Cc:  
Subject: Re: bin/121898: [nullfs] pwd(1)/getcwd(2) fails with Permission denied
Date: Tue, 03 Sep 2013 15:55:23 +1200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --I7VwP6VLJ4NMtdHJ57x1qVnLNlcoQhgXp
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Looks to me like a duplicate of
 http://www.freebsd.org/cgi/query-pr.cgi?pr=3D161424&cat=3D
 
  --
 All the best,
 
 Berend.
 
 
 --I7VwP6VLJ4NMtdHJ57x1qVnLNlcoQhgXp
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iQIcBAEBCAAGBQJSJV2rAAoJEKOfeD48G3g51VEP/2WKzPrB+g+zNcaj+j24NcBS
 7mTMs3ulUbR5jN1saXa0teSMvSD1cRz2C/51gFiiEmRghWl9Cu45Re/zXOzK9mHV
 JMAoTYVg7opmEmkW7njXa9X2k2AIsORJNcQuV8eFVXau+9/x9Zfop3YuqGshsjSe
 xGuBmZA49oekRQq02LtMoSY72Z0Z4L87Fa4ogltjU42+369bMfcuhX8xjWD0LTqw
 PIh6eSSc3eyPO2U9ReqBVpHk7BajcL3Kg0AvuwfBSFSpF1JemHkgqbL3KJPsrKM2
 Yj30n5M3srb/WtBeWKZ9KljhUiRo/SovE6d1dF1gpUDu53wmcFpAnfvWCNJMqChl
 f5IR1NT/Jj3YO2bc2IaK6Xo+eXrOi26Z7fLo4/pJwwZ3pDJkYy57ot/0i7zBxYE7
 XIKSfzYJnM3wdMzW9p0KFM2muRFrLBOTLJ7S3vGalJPpEGFwzyXd7NfTIeYuG4l6
 zGpxBRjklyzdf1axx4G6kZq7QC+cqUkiCGIARNhmULGFnpWAe7KUJo4EhHXBmW36
 9Mq/nxTTzRlyRAyLcuWgp19qWfkUhQUEH0gukLZz4vl34WMpSkQVB/77NZ1I4S/g
 /t5O8b8YbwwZlHNroB5npZgQXb8ErP43CyRtEnWBEQMcpIQue0Rnhmhggp6hoXqC
 07LSyMu6dd9YBOV2jdmz
 =2VpQ
 -----END PGP SIGNATURE-----
 
 --I7VwP6VLJ4NMtdHJ57x1qVnLNlcoQhgXp--
>Unformatted:
