2004-10-05 17:15:55

by Dan Stromberg

[permalink] [raw]
Subject: FC2 NFS server + Solaris 9 4/04 strange permissions problem


On an FC2 system, I'm:

1) loopback mounting a .iso, with the following options from "mount":
/tmp/sol-8-hw4-sparc-v1.iso on /mnt/loop type iso9660
(ro,loop=/dev/loop0)
2) Turning off iptables
3) sharing out the loopback mount over NFS, with the following
/etc/exports entry:
/mnt/loop autoinst.nacs.uci.edu(ro,insecure,no_root_squash)

Then on the Solaris 9 4/04 system, I:

1) Mount the loopback filesystem, with the following attributes from the
"mount| grep /mnt" command:
remote/read only/setuid/xattr/dev=430003c
2) Run a:
find . -depth -print | cpio -pdmu /some/local/dir

...and when I do this, most files are copied fine, however a small
number of them give 'cpio: Error with fstatat() of
"Product/SUNWxwfnt/reloc/openwin/bin", errno 13, Permission denied'
errors.

I suspect that it isn't the same files giving this errror every time.

To make matters more perplexing, every time I do such a find | cpio, I
get errors, but when I ls these directories, I do Not Get Consistent
Behavior. Sometimes I see:
ls -ld ./Product/SUNW1251f/reloc/usr/bin
./Product/SUNW1251f/reloc/usr/bin: Permission denied
...while other times I see:
ls -ld ./Product/SUNW1251f/reloc/usr/bin
drwxr-xr-x 2 root other 2048 Jan 8 2004
./Product/SUNW1251f/reloc/usr/bin


Has anyone else encountered this?

Has anyone come across a solution?

Should I just stop using the loopback mounts, and burn some CD-R's? :)


Thanks!

--
Dan Stromberg DCS/NACS/UCI <[email protected]>




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2004-10-08 20:17:02

by Dan Stromberg

[permalink] [raw]
Subject: Re: FC2 NFS server + Solaris 9 4/04 strange permissions problem


There must be something about the combination of iso9660, loopback
mounting, and NFS, because when I did a tar pipeline to copy the
loopback mount into ext3, I was then able to NFS mount that onto the
same sun from the same NFS server, and all was well.

Thanks.

On Tue, 2004-10-05 at 10:15, Dan Stromberg wrote:
> On an FC2 system, I'm:
>
> 1) loopback mounting a .iso, with the following options from "mount":
> /tmp/sol-8-hw4-sparc-v1.iso on /mnt/loop type iso9660
> (ro,loop=/dev/loop0)
> 2) Turning off iptables
> 3) sharing out the loopback mount over NFS, with the following
> /etc/exports entry:
> /mnt/loop autoinst.nacs.uci.edu(ro,insecure,no_root_squash)
>
> Then on the Solaris 9 4/04 system, I:
>
> 1) Mount the loopback filesystem, with the following attributes from the
> "mount| grep /mnt" command:
> remote/read only/setuid/xattr/dev=430003c
> 2) Run a:
> find . -depth -print | cpio -pdmu /some/local/dir
>
> ...and when I do this, most files are copied fine, however a small
> number of them give 'cpio: Error with fstatat() of
> "Product/SUNWxwfnt/reloc/openwin/bin", errno 13, Permission denied'
> errors.
>
> I suspect that it isn't the same files giving this errror every time.
>
> To make matters more perplexing, every time I do such a find | cpio, I
> get errors, but when I ls these directories, I do Not Get Consistent
> Behavior. Sometimes I see:
> ls -ld ./Product/SUNW1251f/reloc/usr/bin
> ./Product/SUNW1251f/reloc/usr/bin: Permission denied
> ...while other times I see:
> ls -ld ./Product/SUNW1251f/reloc/usr/bin
> drwxr-xr-x 2 root other 2048 Jan 8 2004
> ./Product/SUNW1251f/reloc/usr/bin
>
>
> Has anyone else encountered this?
>
> Has anyone come across a solution?
>
> Should I just stop using the loopback mounts, and burn some CD-R's? :)
>
>
> Thanks!
--
Dan Stromberg DCS/NACS/UCI <[email protected]>


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part