On Sat, Mar 23, 2013 at 07:51:45AM +0100, Richard PALO wrote: > Well, the following seems to indicate the "reason" for the anomalie... > I noticed as well that gnu pwd failed differently... > > >richard@omni1:~/src$ /usr/gnu/bin/pwd > >/home/richard/src > >richard@omni1:~/src$ sudo /usr/gnu/bin/pwd > >/usr/gnu/bin/pwd: cannot open directory ‘..’: Permission denied > >richard@omni1:~/src$ pfexec /usr/gnu/bin/pwd > >/usr/gnu/bin/pwd: cannot open directory ‘..’: Permission denied > >richard@omni1:~/src$ ls -lad .. > >drwxr-x--x 89 richard staff 313 mars 23 07:20 ../ > >richard@omni1:~/src$ cd .. > >richard@omni1:~$ ls -ladV src > >drwxrwxrwx 48 richard staff 73 mars 17 09:59 src/ > > owner@:rwxp--aARWcCos:-------:allow > > group@:rwxp--a-R-c--s:-------:allow > > everyone@:rwxp--a-R-c--s:-------:allow > >richard@omni1:~$ cd src > >richard@omni1:~/src$ ls -ladV .. > >drwxr-x--x 89 richard staff 313 mars 23 07:20 ../ > > owner@:rwxp--aARWcCos:-------:allow > > group@:r-x---a-R-c--s:-------:allow > > everyone@:--x---a-R-c--s:-------:allow > >richard@omni1:~/src$ chmod a+r .. > >richard@omni1:~/src$ ls -ladV .. > >drwxr-xr-x 89 richard staff 313 mars 23 07:20 ../ > > owner@:rwxp--aARWcCos:-------:allow > > group@:r-x---a-R-c--s:-------:allow > > everyone@:r-x---a-R-c--s:-------:allow > >richard@omni1:~/src$ pwd > >/home/richard/src > >richard@omni1:~/src$ sudo pwd > >/home/richard/src > >richard@omni1:~/src$ pfexec pwd > >/home/richard/src > >richard@omni1:~/src$ /usr/gnu/bin/pwd > >/home/richard/src > >richard@omni1:~/src$ sudo /usr/gnu/bin/pwd > >/home/richard/src > >richard@omni1:~/src$ pfexec /usr/gnu/bin/pwd > >/home/richard/src > > > In summary, needed to add read to all for '..' in the src subdirectory. > > I'm inclined to think that this is a bug, should I file a report?
I reproduced this: marcel@t2:/mnt/b/c$ nfsstat -m /mnt from t1:/export/test Flags: vers=4,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=1048576,wsize=1048576,retrans=5,timeo=600 Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60 /mnt/b from t1:/export/test/b Flags: vers=4,proto=tcp,sec=sys,hard,intr,link,symlink,acl,mirrormount,rsize=1048576,wsize=1048576,retrans=5,timeo=600 Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60 /mnt/b/c from t1:/export/test/b/c Flags: vers=4,proto=tcp,sec=sys,hard,intr,link,symlink,acl,mirrormount,rsize=1048576,wsize=1048576,retrans=5,timeo=600 Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60 marcel@t2:/mnt/b/c$ ls -la .. total 5 drwxr-x--- 3 marcel staff 4 2013-03-21 01:48 . drwxr-xr-x 4 root root 4 2013-03-21 01:39 .. drwxr-xr-x 2 root root 3 2013-03-21 01:48 c -rw-r--r-- 1 root root 0 2013-03-21 01:43 x marcel@t2:/mnt/b/c$ /usr/bin/pwd /mnt/b/c marcel@t2:/mnt/b/c$ sudo /usr/bin/pwd pwd: cannot determine current directory! marcel@t2:/mnt/b/c$ pfexec /usr/bin/pwd pwd: cannot determine current directory! marcel@t2:/mnt/b/c$ Is this what you meant? -- +-------------------------------------------+ | Marcel Telka e-mail: [email protected] | | homepage: http://telka.sk/ | | jabber: [email protected] | +-------------------------------------------+ ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
