Bug 121898 - [nullfs] pwd(1)/getcwd(2) fails with Permission denied
Summary: [nullfs] pwd(1)/getcwd(2) fails with Permission denied
Status: Closed DUPLICATE of bug 161424
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-20 06:10 UTC by ota
Modified: 2015-04-27 15:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ota 2008-03-20 06:10:03 UTC
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.

Fix: 

Unknown.
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-05-18 05:24:49 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 berend 2013-09-03 04:55:23 UTC
Looks to me like a duplicate of
http://www.freebsd.org/cgi/query-pr.cgi?pr=161424&cat=

 --
All the best,

Berend.
Comment 3 Jilles Tjoelker freebsd_committer freebsd_triage 2015-04-27 15:21:18 UTC

*** This bug has been marked as a duplicate of bug 161424 ***