Unable to edit auto_master under macOS Mojave












1















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.










share|improve this question









New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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






  • 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













  • 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
















1















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.










share|improve this question









New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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






  • 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













  • 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














1












1








1


0






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.










share|improve this question









New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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






share|improve this question









New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 13 hours ago









Pierre.Vriens

97651015




97651015






New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 14 hours ago









radarradar

163




163




New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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






  • 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













  • 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



















  • 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






  • 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













  • 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

















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










1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer








New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."

    – Christopher
    12 hours ago











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.










draft saved

draft discarded


















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









1














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.






share|improve this answer








New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."

    – Christopher
    12 hours ago
















1














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.






share|improve this answer








New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."

    – Christopher
    12 hours ago














1












1








1







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.






share|improve this answer








New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










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.







share|improve this answer








New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 12 hours ago









radarradar

163




163




New contributor




radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






radar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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





Sure thing! I'll delete all my comments and suggest a close as "could not reproduce."

– Christopher
12 hours ago










radar is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Loup dans la culture

How to solve the problem of ntp “Unable to contact time server” from KDE?

ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux