High Sierra: permissions issues after clean install, also lost use of sudo











up vote
0
down vote

favorite












Having lots of issues after a clean install of High Sierra.
Some I fixed, but some are still going on.
Main ones now are:
(1) Problems with AppleID
(2) Cannot access iCloud: files or email for it
(3) Lost some of my keychain info (all Passwords on Safari) even though I saved the folder, and was supposed to by synching via iCloud



I disabled SIP temporarily for various reasons but maybe doing that also allowed me to corrupt something when adding back my data or apps?



In most cases I reinstalled from the AppStore or their websites.
But I also got error messages related to using Two-factor Authentication, so maybe a keychain file is wrong/corrupted??



I had a permissions issue, but I fixed that by following Apples suggestion to run the following in Terminal:
diskutil resetUserPermissions / id -u



I also have some issues with logging into my appleID, but not everywhere I try it.
On the appleid.apple.com website it works fine, same email + same password as always.
But on System Preferences (iCloud or Internet Accounts) on my MacBook it gives me an error: "This action could not be completed. Try again"



I cannot delete/remove iCloud unless I can log into AppleID on SystemPreferences.



I lost the ability to use sudo in Terminal, but was able to get it back.
The error message after running sudo was:
"/usr/bin/sudo must be owned by uid 0 and have the setuid bit set"



There was a very helpful post on the superuser forum:
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set [OSX]



I ran the Script Editor script he suggested logged in as Root, and it seems to have worked: I can now run sudo commands.



Based on other user posts, here are the outputs from various Terminal commands:
"which sudo" gives "/usr/bin/sudo"
"echo $PATH" gives /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
"ls -l /usr/bin/sudo" gives "-rwxr-xr-x+ 1 root wheel 370704 26 Oct 21:00 /usr/bin/sudo"



I am going to try the following if nobody has some good ideas:
(1) Reinstall my OSX
(2) Ask Apple Support to check my appleid: I suspect I might have a 2nd one from somewhere but was not intentional.










share|improve this question




























    up vote
    0
    down vote

    favorite












    Having lots of issues after a clean install of High Sierra.
    Some I fixed, but some are still going on.
    Main ones now are:
    (1) Problems with AppleID
    (2) Cannot access iCloud: files or email for it
    (3) Lost some of my keychain info (all Passwords on Safari) even though I saved the folder, and was supposed to by synching via iCloud



    I disabled SIP temporarily for various reasons but maybe doing that also allowed me to corrupt something when adding back my data or apps?



    In most cases I reinstalled from the AppStore or their websites.
    But I also got error messages related to using Two-factor Authentication, so maybe a keychain file is wrong/corrupted??



    I had a permissions issue, but I fixed that by following Apples suggestion to run the following in Terminal:
    diskutil resetUserPermissions / id -u



    I also have some issues with logging into my appleID, but not everywhere I try it.
    On the appleid.apple.com website it works fine, same email + same password as always.
    But on System Preferences (iCloud or Internet Accounts) on my MacBook it gives me an error: "This action could not be completed. Try again"



    I cannot delete/remove iCloud unless I can log into AppleID on SystemPreferences.



    I lost the ability to use sudo in Terminal, but was able to get it back.
    The error message after running sudo was:
    "/usr/bin/sudo must be owned by uid 0 and have the setuid bit set"



    There was a very helpful post on the superuser forum:
    sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set [OSX]



    I ran the Script Editor script he suggested logged in as Root, and it seems to have worked: I can now run sudo commands.



    Based on other user posts, here are the outputs from various Terminal commands:
    "which sudo" gives "/usr/bin/sudo"
    "echo $PATH" gives /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
    "ls -l /usr/bin/sudo" gives "-rwxr-xr-x+ 1 root wheel 370704 26 Oct 21:00 /usr/bin/sudo"



    I am going to try the following if nobody has some good ideas:
    (1) Reinstall my OSX
    (2) Ask Apple Support to check my appleid: I suspect I might have a 2nd one from somewhere but was not intentional.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Having lots of issues after a clean install of High Sierra.
      Some I fixed, but some are still going on.
      Main ones now are:
      (1) Problems with AppleID
      (2) Cannot access iCloud: files or email for it
      (3) Lost some of my keychain info (all Passwords on Safari) even though I saved the folder, and was supposed to by synching via iCloud



      I disabled SIP temporarily for various reasons but maybe doing that also allowed me to corrupt something when adding back my data or apps?



      In most cases I reinstalled from the AppStore or their websites.
      But I also got error messages related to using Two-factor Authentication, so maybe a keychain file is wrong/corrupted??



      I had a permissions issue, but I fixed that by following Apples suggestion to run the following in Terminal:
      diskutil resetUserPermissions / id -u



      I also have some issues with logging into my appleID, but not everywhere I try it.
      On the appleid.apple.com website it works fine, same email + same password as always.
      But on System Preferences (iCloud or Internet Accounts) on my MacBook it gives me an error: "This action could not be completed. Try again"



      I cannot delete/remove iCloud unless I can log into AppleID on SystemPreferences.



      I lost the ability to use sudo in Terminal, but was able to get it back.
      The error message after running sudo was:
      "/usr/bin/sudo must be owned by uid 0 and have the setuid bit set"



      There was a very helpful post on the superuser forum:
      sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set [OSX]



      I ran the Script Editor script he suggested logged in as Root, and it seems to have worked: I can now run sudo commands.



      Based on other user posts, here are the outputs from various Terminal commands:
      "which sudo" gives "/usr/bin/sudo"
      "echo $PATH" gives /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
      "ls -l /usr/bin/sudo" gives "-rwxr-xr-x+ 1 root wheel 370704 26 Oct 21:00 /usr/bin/sudo"



      I am going to try the following if nobody has some good ideas:
      (1) Reinstall my OSX
      (2) Ask Apple Support to check my appleid: I suspect I might have a 2nd one from somewhere but was not intentional.










      share|improve this question















      Having lots of issues after a clean install of High Sierra.
      Some I fixed, but some are still going on.
      Main ones now are:
      (1) Problems with AppleID
      (2) Cannot access iCloud: files or email for it
      (3) Lost some of my keychain info (all Passwords on Safari) even though I saved the folder, and was supposed to by synching via iCloud



      I disabled SIP temporarily for various reasons but maybe doing that also allowed me to corrupt something when adding back my data or apps?



      In most cases I reinstalled from the AppStore or their websites.
      But I also got error messages related to using Two-factor Authentication, so maybe a keychain file is wrong/corrupted??



      I had a permissions issue, but I fixed that by following Apples suggestion to run the following in Terminal:
      diskutil resetUserPermissions / id -u



      I also have some issues with logging into my appleID, but not everywhere I try it.
      On the appleid.apple.com website it works fine, same email + same password as always.
      But on System Preferences (iCloud or Internet Accounts) on my MacBook it gives me an error: "This action could not be completed. Try again"



      I cannot delete/remove iCloud unless I can log into AppleID on SystemPreferences.



      I lost the ability to use sudo in Terminal, but was able to get it back.
      The error message after running sudo was:
      "/usr/bin/sudo must be owned by uid 0 and have the setuid bit set"



      There was a very helpful post on the superuser forum:
      sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set [OSX]



      I ran the Script Editor script he suggested logged in as Root, and it seems to have worked: I can now run sudo commands.



      Based on other user posts, here are the outputs from various Terminal commands:
      "which sudo" gives "/usr/bin/sudo"
      "echo $PATH" gives /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
      "ls -l /usr/bin/sudo" gives "-rwxr-xr-x+ 1 root wheel 370704 26 Oct 21:00 /usr/bin/sudo"



      I am going to try the following if nobody has some good ideas:
      (1) Reinstall my OSX
      (2) Ask Apple Support to check my appleid: I suspect I might have a 2nd one from somewhere but was not intentional.







      permissions sudo macos-highsierra apple-id






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 at 17:39









      Mureinik

      2,23351525




      2,23351525










      asked Nov 20 at 2:24









      AlanJ

      13




      13



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376838%2fhigh-sierra-permissions-issues-after-clean-install-also-lost-use-of-sudo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2fsuperuser.com%2fquestions%2f1376838%2fhigh-sierra-permissions-issues-after-clean-install-also-lost-use-of-sudo%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

          QoS: MAC-Priority for clients behind a repeater

          Ивакино (Тотемский район)

          Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)