[OpenAFS] Error opening files on AFS in MacOSX

Duncan S Kincaid dsk@MIT.EDU
Tue, 28 Jan 2014 01:51:42 +0000


--Apple-Mail=_AD5B7E75-2290-4F3F-A2E8-094C2080B23A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

from this web page <http://www.bresink.com/osx/143439/issues.html>,
i cam across this entry which describes both the NFS and AFS behavior =
documented in this thread.
with explanation. (of course the other workaround is to relax security =
as peter has written.)

"After you copy downloaded files onto an NFS server, OS X 10.8 Mountain =
Lion may reject an attempt to open such files at a later time for =
certain file types: If you download a file with OS X 10.8 and then store =
the file by a subsequent copy operation to a location on an NFS file =
server, you may not be capable of opening the file later. Instead, OS X =
displays the erroneous error message =93<file name> is damaged and can't =
be opened. You should move it to the Trash.=94

Workaround: Apple is aware of this problem. It affects all file server =
protocols that emulate extended attributes. Direct write operations =
(e.g. saving a downloaded file into a folder Downloads on an NFS server) =
are not affected, but only subsequent copy operations (e.g. from the =
Downloads folder to a different folder). There are two possible =
workarounds: (1) Copy the file to the local hard drive of the computer =
before opening it. (2) Delete the attribute marking the file as being a =
download, by entering the command xattr -d com.apple.quarantine <path> =
where <path> must be replaced by the path of the affected file. If the =
file is actually a bundle (e.g. an application), use xattr -d -r =
com.apple.quarantine <path>."


On Jan 20, 2014, at 3:52 PM, Derrick Brashear <shadow@gmail.com> wrote:

> The issue appears to be that the security database used for tracking =
quarantine files does not know how to track files in AFS, for reasons I =
have not yet figured out. There are cryptic errors which show up in the =
system message log which hint in this direction.
>=20
>=20
> On Mon, Jan 20, 2014 at 3:41 PM, Duncan S Kincaid <dsk@mit.edu> wrote:
> Indeed, this is the =91fix' we had found for our environment where =
Macintosh users=92 home directories are on AFS.
> Interestingly, I have heard reports of this same problem (and =
solution) with users' home directories on *NFS* .
>=20
> best regards
> dk
>=20
>=20
> Duncan Kincaid
> =
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||=
|||||||
> cron | mit school of architecture and planning
>=20
> On Jan 10, 2014, at 3:50 AM, Peter Dissing <ped@its.aau.dk> wrote:
>=20
> >
> > Hi Jan
> >
> > You can "fix" it here and now by allowing applications from =
anywhere... (it doesn=B4t make sense to me)
> >
> > "System-Preferences" -> "Security & Privacy"  on the general tab =
bottom section.
> > "Set Allow applications downloaded from:"  change it to "anywhere" =
and it works...
> >
> > Note that this will change the security level on the machine
> >
> > Best
> > Peter Dissing
> > Aalborg University
> >
> >
> >
> >
> > -----Original Message-----
> > From: openafs-info-admin@openafs.org =
[mailto:openafs-info-admin@openafs.org] On Behalf Of Jan Posp=ED=9Ail
> > Sent: 9. januar 2014 19:15
> > To: openafs-info@openafs.org
> > Subject: [OpenAFS] Error opening files on AFS in MacOSX
> >
> > Hi all,
> >
> > I am running OpenAFS 1.6.5 client on MacOSX 10.9.1 (Mavericks).
> > Sometimes (very hard to tell under which circumstances), when I am =
trying to open (ususally PDF) files on AFS with Preview.app or "Adobe =
Acrobat Pro.app" I get the following error:
> >
> > "file.pdf" is damaged and can't be opened. You should move it to the =
Trash.
> >
> > Preview.app fails to open also other non-pdf files, e.g. images.
> > However, if I copy the file to the local file system, it opens =
without problems.
> >
> > Does someone know if it is a MacOSX issue or if there is a problem =
with the OpenAFS client? If I knew how, I could provide more =
information.
> >
> > Thank you for your help in advance.
> > Regards
> > Jan
> >
> > --
> > Jan Pospisil, Ph.D.           e-mail: honik@kma.zcu.cz
> > University of West Bohemia    phone:  (+420) 37763-2675
> > Department of Mathematics     fax:    (+420) 37763-2602
> > Plzen, Czech Republic         address: Univerzitni 22, 306 14
> > _______________________________________________
> > OpenAFS-info mailing list
> > OpenAFS-info@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-info
> > _______________________________________________
> > OpenAFS-info mailing list
> > OpenAFS-info@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-info
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> --=20
> Derrick


--Apple-Mail=_AD5B7E75-2290-4F3F-A2E8-094C2080B23A
Content-Disposition: attachment; filename="smime.p7s"
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIDOzCCAzcw
ggKgoAMCAQICEAvIBHYr2NRe7hxpDzMST6kwDQYJKoZIhvcNAQEFBQAwbDELMAkGA1UEBhMCVVMx
FjAUBgNVBAgTDU1hc3NhY2h1c2V0dHMxLjAsBgNVBAoTJU1hc3NhY2h1c2V0dHMgSW5zdGl0dXRl
IG9mIFRlY2hub2xvZ3kxFTATBgNVBAsTDENsaWVudCBDQSB2MTAeFw0xMzA4MTEyMzE4MzlaFw0x
NDA3MzAyMzE4MzlaMIGjMQswCQYDVQQGEwJVUzEWMBQGA1UECBMNTWFzc2FjaHVzZXR0czEuMCwG
A1UEChMlTWFzc2FjaHVzZXR0cyBJbnN0aXR1dGUgb2YgVGVjaG5vbG9neTEVMBMGA1UECxMMQ2xp
ZW50IENBIHYxMRkwFwYDVQQDExBEdW5jYW4gUyBLaW5jYWlkMRowGAYJKoZIhvcNAQkBFgtkc2tA
TUlULkVEVTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAmvRDi0wELndRUTG+Kctg2bAENpQ5
jn4MQfb/IWPslpJOBSSFLHSuw/smgaK2IyWa8UG2duCBA1f6EO323/HQ/9AS0F9atGFh1NIyrLM1
cR0wjQ8mCZe/fntf6/M3lFJ0oETcEM7sf6qdMpVrGlBfMXGEesbCVOigp0rHNdgU31ECAwEAAaOB
oTCBnjAJBgNVHRMEAjAAMBEGCWCGSAGG+EIBAQQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDBAYI
KwYBBQUHAwIwCwYDVR0PBAQDAgXgMB0GA1UdDgQWBBTZiULm/vBm6DYKmFELRU8w8Mux/DAzBgNV
HR8ELDAqMCigJqAkhiJodHRwOi8vY2EubWl0LmVkdS9jYS9taXRjbGllbnQuY3JsMA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