Unable to edit auto_master under macOS Mojave
I'm running macOS since several years and I have an auto_master
file that contains my mounts config.
On a new Macbook, I cannot edit this file which is in the /etc
folder and I have the following error: "auto_master" E212: Can't open file for writing
. Note that I had already an auto_master
file that I have deleted I don't know how (I had the same error message when trying to edit it) and that I can create files in the /etc
folder.
Any idea how I can fix this issue?
Note: The error I have happens when I run sudo vim /etc/auto_master
then I try to write the file. sudo touch /etc/test_file
and sudo rm /etc/test_file
work fine.
osx automounting etc
New contributor
add a comment |
I'm running macOS since several years and I have an auto_master
file that contains my mounts config.
On a new Macbook, I cannot edit this file which is in the /etc
folder and I have the following error: "auto_master" E212: Can't open file for writing
. Note that I had already an auto_master
file that I have deleted I don't know how (I had the same error message when trying to edit it) and that I can create files in the /etc
folder.
Any idea how I can fix this issue?
Note: The error I have happens when I run sudo vim /etc/auto_master
then I try to write the file. sudo touch /etc/test_file
and sudo rm /etc/test_file
work fine.
osx automounting etc
New contributor
I should have mentioned that. The error I have happens when I runsudo vim /etc/auto_master
then I try to write the file.sudo touch /etc/test_file
andsudo rm /etc/test_file
work fine.
– radar
13 hours ago
Three first tests giveNo such file or directory
. The last one gives1
.
– radar
13 hours ago
1
Note that I have anauto_master~
file andls -lO
command on it gives:-rw-r--r-- 1 root wheel compressed 194 6 mar 2018 /etc/auto_master~
– radar
13 hours ago
Already tried to move/etc/auto_master~
to/tmp/
and create a newauto_master
with no success. Followed your advice to removeauto_master~
but with no successtouch: auto_master: Operation not permitted
. Cannot figure out what's happening.
– radar
13 hours ago
add a comment |
I'm running macOS since several years and I have an auto_master
file that contains my mounts config.
On a new Macbook, I cannot edit this file which is in the /etc
folder and I have the following error: "auto_master" E212: Can't open file for writing
. Note that I had already an auto_master
file that I have deleted I don't know how (I had the same error message when trying to edit it) and that I can create files in the /etc
folder.
Any idea how I can fix this issue?
Note: The error I have happens when I run sudo vim /etc/auto_master
then I try to write the file. sudo touch /etc/test_file
and sudo rm /etc/test_file
work fine.
osx automounting etc
New contributor
I'm running macOS since several years and I have an auto_master
file that contains my mounts config.
On a new Macbook, I cannot edit this file which is in the /etc
folder and I have the following error: "auto_master" E212: Can't open file for writing
. Note that I had already an auto_master
file that I have deleted I don't know how (I had the same error message when trying to edit it) and that I can create files in the /etc
folder.
Any idea how I can fix this issue?
Note: The error I have happens when I run sudo vim /etc/auto_master
then I try to write the file. sudo touch /etc/test_file
and sudo rm /etc/test_file
work fine.
osx automounting etc
osx automounting etc
New contributor
New contributor
edited 13 hours ago
Pierre.Vriens
97651015
97651015
New contributor
asked 14 hours ago
radarradar
163
163
New contributor
New contributor
I should have mentioned that. The error I have happens when I runsudo vim /etc/auto_master
then I try to write the file.sudo touch /etc/test_file
andsudo rm /etc/test_file
work fine.
– radar
13 hours ago
Three first tests giveNo such file or directory
. The last one gives1
.
– radar
13 hours ago
1
Note that I have anauto_master~
file andls -lO
command on it gives:-rw-r--r-- 1 root wheel compressed 194 6 mar 2018 /etc/auto_master~
– radar
13 hours ago
Already tried to move/etc/auto_master~
to/tmp/
and create a newauto_master
with no success. Followed your advice to removeauto_master~
but with no successtouch: auto_master: Operation not permitted
. Cannot figure out what's happening.
– radar
13 hours ago
add a comment |
I should have mentioned that. The error I have happens when I runsudo vim /etc/auto_master
then I try to write the file.sudo touch /etc/test_file
andsudo rm /etc/test_file
work fine.
– radar
13 hours ago
Three first tests giveNo such file or directory
. The last one gives1
.
– radar
13 hours ago
1
Note that I have anauto_master~
file andls -lO
command on it gives:-rw-r--r-- 1 root wheel compressed 194 6 mar 2018 /etc/auto_master~
– radar
13 hours ago
Already tried to move/etc/auto_master~
to/tmp/
and create a newauto_master
with no success. Followed your advice to removeauto_master~
but with no successtouch: auto_master: Operation not permitted
. Cannot figure out what's happening.
– radar
13 hours ago
I should have mentioned that. The error I have happens when I run
sudo vim /etc/auto_master
then I try to write the file. sudo touch /etc/test_file
and sudo rm /etc/test_file
work fine.– radar
13 hours ago
I should have mentioned that. The error I have happens when I run
sudo vim /etc/auto_master
then I try to write the file. sudo touch /etc/test_file
and sudo rm /etc/test_file
work fine.– radar
13 hours ago
Three first tests give
No such file or directory
. The last one gives 1
.– radar
13 hours ago
Three first tests give
No such file or directory
. The last one gives 1
.– radar
13 hours ago
1
1
Note that I have an
auto_master~
file and ls -lO
command on it gives: -rw-r--r-- 1 root wheel compressed 194 6 mar 2018 /etc/auto_master~
– radar
13 hours ago
Note that I have an
auto_master~
file and ls -lO
command on it gives: -rw-r--r-- 1 root wheel compressed 194 6 mar 2018 /etc/auto_master~
– radar
13 hours ago
Already tried to move
/etc/auto_master~
to /tmp/
and create a new auto_master
with no success. Followed your advice to remove auto_master~
but with no success touch: auto_master: Operation not permitted
. Cannot figure out what's happening.– radar
13 hours ago
Already tried to move
/etc/auto_master~
to /tmp/
and create a new auto_master
with no success. Followed your advice to remove auto_master~
but with no success touch: auto_master: Operation not permitted
. Cannot figure out what's happening.– radar
13 hours ago
add a comment |
1 Answer
1
active
oldest
votes
I managed to fix the issue by restarting in recovery mode, mounted the internal hard drive then copied the file. It's a workaround but it does not explain what's happening. Thank you very much Christopher.
New contributor
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
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
});
}
});
radar is a new contributor. Be nice, and check out our Code of Conduct.
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%2f495156%2funable-to-edit-auto-master-under-macos-mojave%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
I managed to fix the issue by restarting in recovery mode, mounted the internal hard drive then copied the file. It's a workaround but it does not explain what's happening. Thank you very much Christopher.
New contributor
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
add a comment |
I managed to fix the issue by restarting in recovery mode, mounted the internal hard drive then copied the file. It's a workaround but it does not explain what's happening. Thank you very much Christopher.
New contributor
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
add a comment |
I managed to fix the issue by restarting in recovery mode, mounted the internal hard drive then copied the file. It's a workaround but it does not explain what's happening. Thank you very much Christopher.
New contributor
I managed to fix the issue by restarting in recovery mode, mounted the internal hard drive then copied the file. It's a workaround but it does not explain what's happening. Thank you very much Christopher.
New contributor
New contributor
answered 12 hours ago
radarradar
163
163
New contributor
New contributor
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
add a comment |
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."
– Christopher
12 hours ago
add a comment |
radar is a new contributor. Be nice, and check out our Code of Conduct.
radar is a new contributor. Be nice, and check out our Code of Conduct.
radar is a new contributor. Be nice, and check out our Code of Conduct.
radar is a new contributor. Be nice, and check out our Code of Conduct.
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%2f495156%2funable-to-edit-auto-master-under-macos-mojave%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
I should have mentioned that. The error I have happens when I run
sudo vim /etc/auto_master
then I try to write the file.sudo touch /etc/test_file
andsudo rm /etc/test_file
work fine.– radar
13 hours ago
Three first tests give
No such file or directory
. The last one gives1
.– radar
13 hours ago
1
Note that I have an
auto_master~
file andls -lO
command on it gives:-rw-r--r-- 1 root wheel compressed 194 6 mar 2018 /etc/auto_master~
– radar
13 hours ago
Already tried to move
/etc/auto_master~
to/tmp/
and create a newauto_master
with no success. Followed your advice to removeauto_master~
but with no successtouch: auto_master: Operation not permitted
. Cannot figure out what's happening.– radar
13 hours ago