macOS Mojave Directory PermissionsConfusing Directory Permissionsdirectory permissionsCannot access mounted shared NAS directory with ownCloudHow to remove sshfs directory on MacOS?Disabling CNA in MacOSWhy can't I list a directory with read permissions?How do multiuser group/directory permissions work?Permissions ErrorUnable to edit auto_master under macOS MojavePID full path to executable in macOS Mojave
Im going to France and my passport expires June 19th
Why is this clock signal connected to a capacitor to gnd?
How could indestructible materials be used in power generation?
Why is consensus so controversial in Britain?
Should I cover my bicycle overnight while bikepacking?
Ambiguity in the definition of entropy
Is it logically or scientifically possible to artificially send energy to the body?
Should I tell management that I intend to leave due to bad software development practices?
Personal Teleportation: From Rags to Riches
Mathematica command that allows it to read my intentions
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
How do I handle a potential work/personal life conflict as the manager of one of my friends?
Solving a recurrence relation (poker chips)
How can saying a song's name be a copyright violation?
Reverse dictionary where values are lists
Can a virus destroy the BIOS of a modern computer?
Can compressed videos be decoded back to their uncompresed original format?
What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?
Bullying boss launched a smear campaign and made me unemployable
Why didn't Boeing produce its own regional jet?
What exploit Are these user agents trying to use?
How to tell a function to use the default argument values?
How do conventional missiles fly?
How does a predictive coding aid in lossless compression?
macOS Mojave Directory Permissions
Confusing Directory Permissionsdirectory permissionsCannot access mounted shared NAS directory with ownCloudHow to remove sshfs directory on MacOS?Disabling CNA in MacOSWhy can't I list a directory with read permissions?How do multiuser group/directory permissions work?Permissions ErrorUnable to edit auto_master under macOS MojavePID full path to executable in macOS Mojave
MacOS Mojave has extended the effects of SIP into the home directories of users. By default, access is denied to many directories in a user’s home directory. A few examples of these directories follow.
~/Library/Messages
~/Library/Mail
~/Library/Safari
[… etc.]
In order to access these directories from a terminal, the terminal application must be defined in System Preferences > Security & Privacy > Privacy > Full Disk Access. The configuration works, except for the following directory on my system. The same behavior may exist for other data in containers - not sure.
~/Library/Containers/com.apple.mail/Data/DataVaults
The intriguing behavior is easy to reproduce. The directory isn't even visible.
cd ~/Library/Containers/com.apple.mail/Data
ls
ls: DataVaults: Operation not permitted
I use rsync
to mirror my home directory to an external hard drive; but, I can no longer do so because rsync
complains, "IO error encountered -- skipping file deletion," which breaks the mirroring effect. I do not find any documentation on this issue. Apple support have no idea. Why is this directory special, and how can we gain access to it without disabling SIP?
Results of Further Investigation with SIP Disabled
According to System Information, the Mojave upgrade was performed on 24 September 2018. The directory was also created on the same day. My user owns the directory, and the staff group is the group owner. Its permissions are 0700. It has extended attributes as indicated by the @ symbol. No ACLs. No flags.
xattr -l ~/Library/Containers/com.apple.mail/Data/DataVaults
com.apple.quarantine: 0082;00000000;Mail;
com.apple.rootless: Mail
ls -lO DataVaults
(no result; exit 0)
After disabling SIP, deleting the directory, and reenabling SIP, the directory reappears with the same permissions as soon as Mail is opened. Mail (Version 12.0 (3445.100.39)) has no plugins.
Results from a Fresh Installation on Oct 16 2018
The directory does not exist after formatting and reinstalling. I still have no clue how it was ever there to start.
Results from an upgrade on March 29, 2019
The directory has reappeared coinciding with the upgrade to Mojave 10.14.4 (18E226) and/or Mail Version 12.4 (3445.104.8).
permissions osx
add a comment |
MacOS Mojave has extended the effects of SIP into the home directories of users. By default, access is denied to many directories in a user’s home directory. A few examples of these directories follow.
~/Library/Messages
~/Library/Mail
~/Library/Safari
[… etc.]
In order to access these directories from a terminal, the terminal application must be defined in System Preferences > Security & Privacy > Privacy > Full Disk Access. The configuration works, except for the following directory on my system. The same behavior may exist for other data in containers - not sure.
~/Library/Containers/com.apple.mail/Data/DataVaults
The intriguing behavior is easy to reproduce. The directory isn't even visible.
cd ~/Library/Containers/com.apple.mail/Data
ls
ls: DataVaults: Operation not permitted
I use rsync
to mirror my home directory to an external hard drive; but, I can no longer do so because rsync
complains, "IO error encountered -- skipping file deletion," which breaks the mirroring effect. I do not find any documentation on this issue. Apple support have no idea. Why is this directory special, and how can we gain access to it without disabling SIP?
Results of Further Investigation with SIP Disabled
According to System Information, the Mojave upgrade was performed on 24 September 2018. The directory was also created on the same day. My user owns the directory, and the staff group is the group owner. Its permissions are 0700. It has extended attributes as indicated by the @ symbol. No ACLs. No flags.
xattr -l ~/Library/Containers/com.apple.mail/Data/DataVaults
com.apple.quarantine: 0082;00000000;Mail;
com.apple.rootless: Mail
ls -lO DataVaults
(no result; exit 0)
After disabling SIP, deleting the directory, and reenabling SIP, the directory reappears with the same permissions as soon as Mail is opened. Mail (Version 12.0 (3445.100.39)) has no plugins.
Results from a Fresh Installation on Oct 16 2018
The directory does not exist after formatting and reinstalling. I still have no clue how it was ever there to start.
Results from an upgrade on March 29, 2019
The directory has reappeared coinciding with the upgrade to Mojave 10.14.4 (18E226) and/or Mail Version 12.4 (3445.104.8).
permissions osx
The directory is protected by either a file flag, ACL or extended attribute. I have notice that many of the files and directories acquired thecom.apple.quarantine
attribute after upgrading to Mojave, for example. For my own backups (usingrestic
from Homebrew), I simply ignore these bits of~/Library
as none of them seems to concern me or what I usually do anyway. I have some 24 of these myself.
– Kusalananda♦
Oct 1 '18 at 13:53
Sorry, I re-read you question and indeed, after adding the iTerm2 (in my case) to the apps with "Full disk access", the backup now runs without issues (thanks for that!). I can't say more about your case. On my machine, I can see that particular directory and it contains symbolic links to some of the directories in my home directory (the "default" ones likeDocuments
,Movies
,Music
etc.).
– Kusalananda♦
Oct 1 '18 at 14:01
Can't say more. I don't have that directory/symlink. Did you upgrade or re-install? Does "DataVaults" ring a bell regarding any application or feature you have previously used?
– Kusalananda♦
Oct 1 '18 at 14:08
add a comment |
MacOS Mojave has extended the effects of SIP into the home directories of users. By default, access is denied to many directories in a user’s home directory. A few examples of these directories follow.
~/Library/Messages
~/Library/Mail
~/Library/Safari
[… etc.]
In order to access these directories from a terminal, the terminal application must be defined in System Preferences > Security & Privacy > Privacy > Full Disk Access. The configuration works, except for the following directory on my system. The same behavior may exist for other data in containers - not sure.
~/Library/Containers/com.apple.mail/Data/DataVaults
The intriguing behavior is easy to reproduce. The directory isn't even visible.
cd ~/Library/Containers/com.apple.mail/Data
ls
ls: DataVaults: Operation not permitted
I use rsync
to mirror my home directory to an external hard drive; but, I can no longer do so because rsync
complains, "IO error encountered -- skipping file deletion," which breaks the mirroring effect. I do not find any documentation on this issue. Apple support have no idea. Why is this directory special, and how can we gain access to it without disabling SIP?
Results of Further Investigation with SIP Disabled
According to System Information, the Mojave upgrade was performed on 24 September 2018. The directory was also created on the same day. My user owns the directory, and the staff group is the group owner. Its permissions are 0700. It has extended attributes as indicated by the @ symbol. No ACLs. No flags.
xattr -l ~/Library/Containers/com.apple.mail/Data/DataVaults
com.apple.quarantine: 0082;00000000;Mail;
com.apple.rootless: Mail
ls -lO DataVaults
(no result; exit 0)
After disabling SIP, deleting the directory, and reenabling SIP, the directory reappears with the same permissions as soon as Mail is opened. Mail (Version 12.0 (3445.100.39)) has no plugins.
Results from a Fresh Installation on Oct 16 2018
The directory does not exist after formatting and reinstalling. I still have no clue how it was ever there to start.
Results from an upgrade on March 29, 2019
The directory has reappeared coinciding with the upgrade to Mojave 10.14.4 (18E226) and/or Mail Version 12.4 (3445.104.8).
permissions osx
MacOS Mojave has extended the effects of SIP into the home directories of users. By default, access is denied to many directories in a user’s home directory. A few examples of these directories follow.
~/Library/Messages
~/Library/Mail
~/Library/Safari
[… etc.]
In order to access these directories from a terminal, the terminal application must be defined in System Preferences > Security & Privacy > Privacy > Full Disk Access. The configuration works, except for the following directory on my system. The same behavior may exist for other data in containers - not sure.
~/Library/Containers/com.apple.mail/Data/DataVaults
The intriguing behavior is easy to reproduce. The directory isn't even visible.
cd ~/Library/Containers/com.apple.mail/Data
ls
ls: DataVaults: Operation not permitted
I use rsync
to mirror my home directory to an external hard drive; but, I can no longer do so because rsync
complains, "IO error encountered -- skipping file deletion," which breaks the mirroring effect. I do not find any documentation on this issue. Apple support have no idea. Why is this directory special, and how can we gain access to it without disabling SIP?
Results of Further Investigation with SIP Disabled
According to System Information, the Mojave upgrade was performed on 24 September 2018. The directory was also created on the same day. My user owns the directory, and the staff group is the group owner. Its permissions are 0700. It has extended attributes as indicated by the @ symbol. No ACLs. No flags.
xattr -l ~/Library/Containers/com.apple.mail/Data/DataVaults
com.apple.quarantine: 0082;00000000;Mail;
com.apple.rootless: Mail
ls -lO DataVaults
(no result; exit 0)
After disabling SIP, deleting the directory, and reenabling SIP, the directory reappears with the same permissions as soon as Mail is opened. Mail (Version 12.0 (3445.100.39)) has no plugins.
Results from a Fresh Installation on Oct 16 2018
The directory does not exist after formatting and reinstalling. I still have no clue how it was ever there to start.
Results from an upgrade on March 29, 2019
The directory has reappeared coinciding with the upgrade to Mojave 10.14.4 (18E226) and/or Mail Version 12.4 (3445.104.8).
permissions osx
permissions osx
edited 2 days ago
Christopher
asked Oct 1 '18 at 13:21
ChristopherChristopher
10.8k33249
10.8k33249
The directory is protected by either a file flag, ACL or extended attribute. I have notice that many of the files and directories acquired thecom.apple.quarantine
attribute after upgrading to Mojave, for example. For my own backups (usingrestic
from Homebrew), I simply ignore these bits of~/Library
as none of them seems to concern me or what I usually do anyway. I have some 24 of these myself.
– Kusalananda♦
Oct 1 '18 at 13:53
Sorry, I re-read you question and indeed, after adding the iTerm2 (in my case) to the apps with "Full disk access", the backup now runs without issues (thanks for that!). I can't say more about your case. On my machine, I can see that particular directory and it contains symbolic links to some of the directories in my home directory (the "default" ones likeDocuments
,Movies
,Music
etc.).
– Kusalananda♦
Oct 1 '18 at 14:01
Can't say more. I don't have that directory/symlink. Did you upgrade or re-install? Does "DataVaults" ring a bell regarding any application or feature you have previously used?
– Kusalananda♦
Oct 1 '18 at 14:08
add a comment |
The directory is protected by either a file flag, ACL or extended attribute. I have notice that many of the files and directories acquired thecom.apple.quarantine
attribute after upgrading to Mojave, for example. For my own backups (usingrestic
from Homebrew), I simply ignore these bits of~/Library
as none of them seems to concern me or what I usually do anyway. I have some 24 of these myself.
– Kusalananda♦
Oct 1 '18 at 13:53
Sorry, I re-read you question and indeed, after adding the iTerm2 (in my case) to the apps with "Full disk access", the backup now runs without issues (thanks for that!). I can't say more about your case. On my machine, I can see that particular directory and it contains symbolic links to some of the directories in my home directory (the "default" ones likeDocuments
,Movies
,Music
etc.).
– Kusalananda♦
Oct 1 '18 at 14:01
Can't say more. I don't have that directory/symlink. Did you upgrade or re-install? Does "DataVaults" ring a bell regarding any application or feature you have previously used?
– Kusalananda♦
Oct 1 '18 at 14:08
The directory is protected by either a file flag, ACL or extended attribute. I have notice that many of the files and directories acquired the
com.apple.quarantine
attribute after upgrading to Mojave, for example. For my own backups (using restic
from Homebrew), I simply ignore these bits of ~/Library
as none of them seems to concern me or what I usually do anyway. I have some 24 of these myself.– Kusalananda♦
Oct 1 '18 at 13:53
The directory is protected by either a file flag, ACL or extended attribute. I have notice that many of the files and directories acquired the
com.apple.quarantine
attribute after upgrading to Mojave, for example. For my own backups (using restic
from Homebrew), I simply ignore these bits of ~/Library
as none of them seems to concern me or what I usually do anyway. I have some 24 of these myself.– Kusalananda♦
Oct 1 '18 at 13:53
Sorry, I re-read you question and indeed, after adding the iTerm2 (in my case) to the apps with "Full disk access", the backup now runs without issues (thanks for that!). I can't say more about your case. On my machine, I can see that particular directory and it contains symbolic links to some of the directories in my home directory (the "default" ones like
Documents
, Movies
, Music
etc.).– Kusalananda♦
Oct 1 '18 at 14:01
Sorry, I re-read you question and indeed, after adding the iTerm2 (in my case) to the apps with "Full disk access", the backup now runs without issues (thanks for that!). I can't say more about your case. On my machine, I can see that particular directory and it contains symbolic links to some of the directories in my home directory (the "default" ones like
Documents
, Movies
, Music
etc.).– Kusalananda♦
Oct 1 '18 at 14:01
Can't say more. I don't have that directory/symlink. Did you upgrade or re-install? Does "DataVaults" ring a bell regarding any application or feature you have previously used?
– Kusalananda♦
Oct 1 '18 at 14:08
Can't say more. I don't have that directory/symlink. Did you upgrade or re-install? Does "DataVaults" ring a bell regarding any application or feature you have previously used?
– Kusalananda♦
Oct 1 '18 at 14:08
add a comment |
1 Answer
1
active
oldest
votes
The DataVaults directory has to do with entitlements. Access is prevented unless the owner of the entitlement grants the access. The entitlements for Mail.app can be listed as follows and provides an XML plist.
codesign -d --entitlements - /Applications/Mail.app/
At this time, the only remaining method to acquire access to the directory is to turn off SIP. In regard to my rsync
issue, I opted to keep SIP turned on and utilized the rsysnc
option, exclude
, to ignore the DataVaults directory, which, by the way, is devoid of content.
From a comment the blog at Eclectic Light Company, offering more clues:
/var/folders/t9/[long ID]/C/com.apple.QuickLook.thumbnailcache”
is
a DataVault, which is a new type of privacy container that Apple
introduced sometime around 10.13.4. These files/folders are identified
by the “UF_DATAVAULT” file flag. These are implemented via SIP (not
technically sandboxing, but the same gist). Applications need an
entitlement to make or access specific data vaults, or even to stat() a
DataVault folder.
These devices are worth some deeper investigation. Apple doesn’t (and
apparently has no plans to) issue these entitlements to third-parties.
Consider the implications of that – Apple is creating a platform where
only data created in Apple applications gets the highest level of
security.
Also consider that you (the user) can’t see what’s in these DataVaults
without turning off SIP. It’s hard to tell what Apple is keeping in
these, but some of them are a bit alarming. Here are just a few known
data vaults:
~/Library/VoiceTrigger/SAT
~/Library/Containers/com.apple.mail/Data/DataVaults
/private/var/folders/0z/fs4vdwmx6g31n69qt5v5ff580000gn/0/com.apple.nsurlsessiond
That first one apparently has “Siri Audio Transcripts” – everything
you’ve ever uttered to Siri on your Mac.
I did not find a flag on ~/Library/Containers/com.apple.mail/Data/DataVaults
, and a clean installation of Mojave caused the directory not to appear again since.
A summary overview of access controls was also published.
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f472576%2fmacos-mojave-directory-permissions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The DataVaults directory has to do with entitlements. Access is prevented unless the owner of the entitlement grants the access. The entitlements for Mail.app can be listed as follows and provides an XML plist.
codesign -d --entitlements - /Applications/Mail.app/
At this time, the only remaining method to acquire access to the directory is to turn off SIP. In regard to my rsync
issue, I opted to keep SIP turned on and utilized the rsysnc
option, exclude
, to ignore the DataVaults directory, which, by the way, is devoid of content.
From a comment the blog at Eclectic Light Company, offering more clues:
/var/folders/t9/[long ID]/C/com.apple.QuickLook.thumbnailcache”
is
a DataVault, which is a new type of privacy container that Apple
introduced sometime around 10.13.4. These files/folders are identified
by the “UF_DATAVAULT” file flag. These are implemented via SIP (not
technically sandboxing, but the same gist). Applications need an
entitlement to make or access specific data vaults, or even to stat() a
DataVault folder.
These devices are worth some deeper investigation. Apple doesn’t (and
apparently has no plans to) issue these entitlements to third-parties.
Consider the implications of that – Apple is creating a platform where
only data created in Apple applications gets the highest level of
security.
Also consider that you (the user) can’t see what’s in these DataVaults
without turning off SIP. It’s hard to tell what Apple is keeping in
these, but some of them are a bit alarming. Here are just a few known
data vaults:
~/Library/VoiceTrigger/SAT
~/Library/Containers/com.apple.mail/Data/DataVaults
/private/var/folders/0z/fs4vdwmx6g31n69qt5v5ff580000gn/0/com.apple.nsurlsessiond
That first one apparently has “Siri Audio Transcripts” – everything
you’ve ever uttered to Siri on your Mac.
I did not find a flag on ~/Library/Containers/com.apple.mail/Data/DataVaults
, and a clean installation of Mojave caused the directory not to appear again since.
A summary overview of access controls was also published.
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
add a comment |
The DataVaults directory has to do with entitlements. Access is prevented unless the owner of the entitlement grants the access. The entitlements for Mail.app can be listed as follows and provides an XML plist.
codesign -d --entitlements - /Applications/Mail.app/
At this time, the only remaining method to acquire access to the directory is to turn off SIP. In regard to my rsync
issue, I opted to keep SIP turned on and utilized the rsysnc
option, exclude
, to ignore the DataVaults directory, which, by the way, is devoid of content.
From a comment the blog at Eclectic Light Company, offering more clues:
/var/folders/t9/[long ID]/C/com.apple.QuickLook.thumbnailcache”
is
a DataVault, which is a new type of privacy container that Apple
introduced sometime around 10.13.4. These files/folders are identified
by the “UF_DATAVAULT” file flag. These are implemented via SIP (not
technically sandboxing, but the same gist). Applications need an
entitlement to make or access specific data vaults, or even to stat() a
DataVault folder.
These devices are worth some deeper investigation. Apple doesn’t (and
apparently has no plans to) issue these entitlements to third-parties.
Consider the implications of that – Apple is creating a platform where
only data created in Apple applications gets the highest level of
security.
Also consider that you (the user) can’t see what’s in these DataVaults
without turning off SIP. It’s hard to tell what Apple is keeping in
these, but some of them are a bit alarming. Here are just a few known
data vaults:
~/Library/VoiceTrigger/SAT
~/Library/Containers/com.apple.mail/Data/DataVaults
/private/var/folders/0z/fs4vdwmx6g31n69qt5v5ff580000gn/0/com.apple.nsurlsessiond
That first one apparently has “Siri Audio Transcripts” – everything
you’ve ever uttered to Siri on your Mac.
I did not find a flag on ~/Library/Containers/com.apple.mail/Data/DataVaults
, and a clean installation of Mojave caused the directory not to appear again since.
A summary overview of access controls was also published.
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
add a comment |
The DataVaults directory has to do with entitlements. Access is prevented unless the owner of the entitlement grants the access. The entitlements for Mail.app can be listed as follows and provides an XML plist.
codesign -d --entitlements - /Applications/Mail.app/
At this time, the only remaining method to acquire access to the directory is to turn off SIP. In regard to my rsync
issue, I opted to keep SIP turned on and utilized the rsysnc
option, exclude
, to ignore the DataVaults directory, which, by the way, is devoid of content.
From a comment the blog at Eclectic Light Company, offering more clues:
/var/folders/t9/[long ID]/C/com.apple.QuickLook.thumbnailcache”
is
a DataVault, which is a new type of privacy container that Apple
introduced sometime around 10.13.4. These files/folders are identified
by the “UF_DATAVAULT” file flag. These are implemented via SIP (not
technically sandboxing, but the same gist). Applications need an
entitlement to make or access specific data vaults, or even to stat() a
DataVault folder.
These devices are worth some deeper investigation. Apple doesn’t (and
apparently has no plans to) issue these entitlements to third-parties.
Consider the implications of that – Apple is creating a platform where
only data created in Apple applications gets the highest level of
security.
Also consider that you (the user) can’t see what’s in these DataVaults
without turning off SIP. It’s hard to tell what Apple is keeping in
these, but some of them are a bit alarming. Here are just a few known
data vaults:
~/Library/VoiceTrigger/SAT
~/Library/Containers/com.apple.mail/Data/DataVaults
/private/var/folders/0z/fs4vdwmx6g31n69qt5v5ff580000gn/0/com.apple.nsurlsessiond
That first one apparently has “Siri Audio Transcripts” – everything
you’ve ever uttered to Siri on your Mac.
I did not find a flag on ~/Library/Containers/com.apple.mail/Data/DataVaults
, and a clean installation of Mojave caused the directory not to appear again since.
A summary overview of access controls was also published.
The DataVaults directory has to do with entitlements. Access is prevented unless the owner of the entitlement grants the access. The entitlements for Mail.app can be listed as follows and provides an XML plist.
codesign -d --entitlements - /Applications/Mail.app/
At this time, the only remaining method to acquire access to the directory is to turn off SIP. In regard to my rsync
issue, I opted to keep SIP turned on and utilized the rsysnc
option, exclude
, to ignore the DataVaults directory, which, by the way, is devoid of content.
From a comment the blog at Eclectic Light Company, offering more clues:
/var/folders/t9/[long ID]/C/com.apple.QuickLook.thumbnailcache”
is
a DataVault, which is a new type of privacy container that Apple
introduced sometime around 10.13.4. These files/folders are identified
by the “UF_DATAVAULT” file flag. These are implemented via SIP (not
technically sandboxing, but the same gist). Applications need an
entitlement to make or access specific data vaults, or even to stat() a
DataVault folder.
These devices are worth some deeper investigation. Apple doesn’t (and
apparently has no plans to) issue these entitlements to third-parties.
Consider the implications of that – Apple is creating a platform where
only data created in Apple applications gets the highest level of
security.
Also consider that you (the user) can’t see what’s in these DataVaults
without turning off SIP. It’s hard to tell what Apple is keeping in
these, but some of them are a bit alarming. Here are just a few known
data vaults:
~/Library/VoiceTrigger/SAT
~/Library/Containers/com.apple.mail/Data/DataVaults
/private/var/folders/0z/fs4vdwmx6g31n69qt5v5ff580000gn/0/com.apple.nsurlsessiond
That first one apparently has “Siri Audio Transcripts” – everything
you’ve ever uttered to Siri on your Mac.
I did not find a flag on ~/Library/Containers/com.apple.mail/Data/DataVaults
, and a clean installation of Mojave caused the directory not to appear again since.
A summary overview of access controls was also published.
edited Oct 26 '18 at 11:42
answered Oct 5 '18 at 12:59
ChristopherChristopher
10.8k33249
10.8k33249
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
add a comment |
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
You could also consider the rsync option --ignore-errors.
– dave
Feb 11 at 4:38
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f472576%2fmacos-mojave-directory-permissions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The directory is protected by either a file flag, ACL or extended attribute. I have notice that many of the files and directories acquired the
com.apple.quarantine
attribute after upgrading to Mojave, for example. For my own backups (usingrestic
from Homebrew), I simply ignore these bits of~/Library
as none of them seems to concern me or what I usually do anyway. I have some 24 of these myself.– Kusalananda♦
Oct 1 '18 at 13:53
Sorry, I re-read you question and indeed, after adding the iTerm2 (in my case) to the apps with "Full disk access", the backup now runs without issues (thanks for that!). I can't say more about your case. On my machine, I can see that particular directory and it contains symbolic links to some of the directories in my home directory (the "default" ones like
Documents
,Movies
,Music
etc.).– Kusalananda♦
Oct 1 '18 at 14:01
Can't say more. I don't have that directory/symlink. Did you upgrade or re-install? Does "DataVaults" ring a bell regarding any application or feature you have previously used?
– Kusalananda♦
Oct 1 '18 at 14:08