Mta-interface: amavisd-new-2.3.3 (2005-08-22) + Maia Mailguard 1.1.0 at daleenterprise.com
On Nov 20, 2007, at 09:24:58, websrvr wrote:
On Nov 20, 2007, at 08:54:05, Michael Cashwell wrote:
On Nov 20, 2007, at 4:01 AM, Manfred Schwind wrote:
Leopard comes with svn installed in /usr/bin, that's great.
But I accidently deleted and tried to copy it back therein from
another Leopard installation. It generally works, but I see
something I want to know more about:
When I do the directory listing with "ls -l" of /usr/bin in the
Terminal, I see an @ symbol behind the access rights:
-rwxr-xr-x@ 1 root wheel 251904 19 Nov 18:32 svn
What is that @ symbol standing for? It's not there on original
Leopard installations. How can I get rid of that?
It indicates that the file has extended attributes. I don't know
why xattr has no man page but give "xattr -h" a try.
If i copy svn e.g. to my home directory, the symbol is gone, but
as soon as I copy it into /usr/bin it's there again.
I see how this occurred, further testing yields, "cp -rfp /Volumes/
MHD/usr/bin/svn /usr/bin/" doesn't have the same effect/result as
using "(cd /Volumes/MHD/usr/bin/ && tar cfp - svn|(cd /usr/bin/ &&
tar fpvx -))" and dates are changed, "xattr -l /usr/bin/svn" showed
nothing special so it must a system/kernel level integrity check.
cp -rfp /Volumes/MHD/usr/bin/svn /usr/bin/ && ls -l /usr/bin/svn; \
rm /usr/bin/svn; # delete the cp'd file just to be safe; \
(cd /Volumes/MHD/usr/bin/ && tar cfp - svn|(cd /usr/bin/ && tar fpvx
-)) && ls -l /usr/bin/svn
Using tar seems to preserve everything (with "p" specified) where cp
doesn't so I think you might want to start using tar or maybe ditto
to copy system related files, also a good indication when someone
else has changed files so you can keep an eye out for it now that you
know what it means.
You can remove them by name via "xattr -d" though do exercise
caution as they do contain information the system uses for ACLs
and I think in the case you've found, the ability of the system to
warn users that a binary is not trusted. Your copy operation
strips the trust that the svn installed by the installer would
Do not post admin requests to the list. They will be ignored.
Darwin-userlevel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden