Can't Boot after uninstalling Teamviewer on Mac OS Catalina

Marc77
Marc77 Posts: 1
edited June 2022 in General questions

Hello!

Am in a bit of a pickle after a succesful upgrade to Catalina and then uninstalling Teamviewer through CleanMyMac uninstaller utility. It all seemed fine till i had rebooted and it fails with an Unrecoverable error for security agent Teamviewer auth plugin.start.

Anyone know how to fix this, w/o needing to install all from scratch?

Thanks in advance.

Tagged:

Best Answer

«13

Answers

  • Wonsa
    Wonsa Posts: 1
    I also have this problem, I'm so sad I can't use my mac.
  • Mrsharifi
    Mrsharifi Posts: 6 ✭✭
    edited June 2022

    I had exactly the same problem and the following helped me to resolve the problem. 

    1. Install the TeamViewer app on another MacOS
    2. Copy the "TeamViewerAuthPlugin.bundle" from "/Library/Security/SecurityAgentPlugins/TeamViewerAuthPlugin.bundle" to a USB. Make sure the USB is formatted in the native MacOS filesystem to avoid incompatibility issues in the next steps.
    3. Restart your machine and hold Command+R to enter the MacOS Recovery mode until the Apple Logo appears. this process may take some time
    4. Upon entering the recovery mode, you'll be instructed to select the language, username, and finally to enter your password.
    5. After a few minutes, the macOS Utilities window will appear
    6. From the list select Disk Utility
    7. In the Disk Utility window, from the left pane select the "macOS" disk and in the right pane click on the "Mount" button. If asked, enter your login password. Now, the macOS disk is mounted. to verify this, look at the info bar on the page. it should be active and show detail information about the disk.
    8. Close the Disk Utility window and from the menu bar, select Utilities and select Terminal
    9. Once the Terminal window opened, connect the USB to the machine and type following: 
    cp -r /Volumes/<your USB name>/TeamViewerAuthPlugin.bundle /Volumes/macOS/Library/Security/SecurityAgentPlugins/
    
    1. To verify the above operation, enter the following; it should show the "TeamViewerAuthPlugin.bundle". 
    ls -l /Volumes/macOS/Library/Security/SecurityAgentPlugins/
    
    1. If not shown, try to retype step 9 but use the Tab key to autocomplete the path step by step. Don't rush!!!
    2. If successful, from Apple logo on the top left corner select Restart and wait for the machine to restart
    3. Now you should be able to successfully login to your machine.

    In case of any problem during step 9, especially receiving "Operation not permitted". enter the following:

    csrutil disable
    

    Restart the machine for the changes to take effect. Then, repeat step 3 and follow the instructions again. Once the macOS booted successfully, open a Terminal and reverse the setting by entering:

    csrutil enable
    

    NOTE: I tried to recall all the steps after two days, so I might have missed something. So, in case of any problem please email me at [removed per Community Guidelines]

    Hope it helps

    Cheers, 

    Rez

  • It seems like cp command is not working. every time i'm trying to use it the following error accures

    no such file or directory

    so i decided moving the .bundle would help, but still the same error

    please help

  • Mrsharifi
    Mrsharifi Posts: 6 ✭✭

    pls, post the screenshot of the exact command you use and the output.

  • IMG_0385.JPG

  • cp -r /Volumes/<my USB name>/TeamViewerAuthPlugin.bundle /Volumes/macOS\ Base\ System/Library/Security/SecurityAgentPlugins/

    that's the code i've been using

  • I am having the same problems and took your advice and installed teamviewer on another mac.  (Mojave). There is no authplugin.bundle in the directory with the application so I cannot copy the plugin? What shoul I do? 

  • Mrsharifi
    Mrsharifi Posts: 6 ✭✭

    You're copying the file to a wrong directory "/Volumes/macOS Base System". Put it simply, consider macOS Base as a light version of macOS to provide necessary tools for troubleshooting and recovery. Therefore, the filesystem is in Read-only mode. That's why you can't write or modify.

    As instructed in step 7, you should FIRST mount the macOS disk so that you can access the main filesystem and copy the file to the right path.

    Once done, open the terminal and use enter following:

    Spoiler
    ls -l /Volumes

    You should be able to see following in the output in addition to "macOS Base System":

    Spoiler
    macOS
    macOS - Data

    If so, you can continue with step 9 and so on. But, as shown below, make sure to use "macOS" in the destination instead of "macOS Base System".

    /Volumes/macOS/Library/Security/SecurityAgentPlugins/

    Hope it helps.

    Rez

     

  • IMG_0402.JPGwhich disk shall I mount?

  • Mrsharifi
    Mrsharifi Posts: 6 ✭✭

    Macintosh HD. but it seems it's already mounted. so try the command "ls -l /Volumes" to see if it lists the "Macintosh HD". If so, continue with copying the file to: 

    /Volumes/Macintosh\ HD/Library/Security/SecurityAgentPlugins/
  • OMG! You are great! Works fine! Now I am able to use my computer!  THANK YOU!!!!

  • Mrsharifi
    Mrsharifi Posts: 6 ✭✭

    it's TeamViewerAuthPlugin.bundle not authplugin.bundle. it's case sensitive so make sure you're looking for the right file.

  • Mrsharifi
    Mrsharifi Posts: 6 ✭✭
    Hi,

    Please see my new post on this issue here. I rewrote the entire instruction. I fixed some minor mistakes and added more details including the errors.

    I hope it helps. 
     
    Rez
  • I am also having this same problem. The codes aren’t working and say wrong path but it some it says that it has found the locations but hasn’t copied. I am trying to upload a picture but it won’t let me. Can someone help? I miss my Mac :(
  • thanks broh.. 

  • Anyone has theses files somewhere i can download .. i don't have another MAC .. so i can't appy this solution ...

     

    Anyone else found a way of removing the file that does prevent us to get to the login page without having to Copy back the file from another computer?

  • "/Library/Security/SecurityAgentPlugins/TeamViewerAuthPlugin.bundle"   cant find this can you please shar the screen shot where exactly  i will find this file

  • its saying permission denied 

  • sariao
    sariao Posts: 1

    You just need to reinstall Teamviewer from Recovery Mode

    1-Download Teamviewer .dmg file from Teamviewer site to a usb https://www.teamviewer.com/en/download/mac-os/

    2-start computer in recovery mode (Command+R)

    3-plug your usb

    4- go Terminal from Uitility

    5-install Teamviewer .dmg file using:

    installer -package /Volumes/<your usb name>/TeamViewer.dmg -target /Volumes/<your main hdd>

    Example:

    installer -package /Volumes/sandisk/TeamViewer.dmg -target /Volumes/Macintosh\ HD

     

  • i have it too

  • I would like to thank you for the post and also the readers who have had faced similar issue before. 

    Copying to macOS folder does not work on 10.15 but copying .bundle folder to Machintosh HD does work.

    :D


    @Mrsharifi wrote:

    I had exactly the same problem and the following helped me to resolve the problem. 

    1. Install the TeamViewer app on another MacOS
    2. Copy the "TeamViewerAuthPlugin.bundle" from  "/Library/Security/SecurityAgentPlugins/TeamViewerAuthPlugin.bundle" to a USB. Make sure the USB is formatted in the native MacOS filesystem to avoid incompatibility issues in the next steps.
    3. Restart your machine and hold Command+R to enter the MacOS Recovery mode until the Apple Logo appears. this process may take some time
    4. Upon entering the recovery mode, you'll be instructed to select the language, username, and finally to enter your password.
    5. After a few minutes, the macOS Utilities window will appear
    6. From the list select Disk Utility
    7. In the Disk Utility window, from the left pane select the "macOS" disk and in the right pane click on the "Mount" button. If asked, enter your login password. Now, the macOS disk is mounted. to verify this, look at the info bar on the page. it should be active and show detail information about the disk.
    8. Close the Disk Utility window and from the menu bar, select Utilities and select Terminal
    9. Once the Terminal window opened, connect the USB to the machine and type following: 
      cp -r /Volumes/<your USB name>/TeamViewerAuthPlugin.bundle /Volumes/macOS/Library/Security/SecurityAgentPlugins/
    10. To verify the above operation, enter the following; it should show the "TeamViewerAuthPlugin.bundle". 
      ls -l /Volumes/macOS/Library/Security/SecurityAgentPlugins/
      If not shown, try to retype step 9 but use the Tab key to autocomplete the path step by step. Don't rush!!!
    11. If successful, from Apple logo on the top left corner select Restart and wait for the machine to restart
    12. Now you should be able to successfully login to your machine.

    In case of any problem during step 9, especially receiving "Operation not permitted". enter the following:

    csrutil disable

    Restart the machine for the changes to take effect. Then, repeat step 3 and follow the instructions again. Once the macOS booted successfully, open a Terminal and reverse the  setting by entering:

    csrutil enable

    NOTE: I tried to recall all the steps after two days, so I might have missed something. So, in case of any problem please email me at mrsharifi.it@gmail.com.

    Hope it helps

    Cheers, 

    Rez


     

  • Thanks for raising this issue bro


    @rafinelio wrote:

    IMG_0402.JPGwhich disk shall I mount?


     

  • rm "/Macintosh HD/private/var/db/auth.db"

    reboot
  • The solution with deleting var/db/auth.db didn't work for me while I was using the machine in Target Disk mode. So I tried this solution and it worked immediatly. Thank you very much.

  • Hello

    I've uninstalled TeamViewer on my iMac and right after I restarted the iMac. Now, whenever I try to put on the computer it takes me to the login page where I put in my passwords. As soon as it loads all I get is a black screen and a small popup box:

    "Unrecoverable error.

    SecurityAgent was unable to create requested mechanism TeamViewerAuthPlugin:start.

    OK"

    Clicking "OK" makes no difference. 

    Apple doesn't know what to do. The one I spoke to didn't at least.

    Any advice please let me know.

    Thanks in Advance 

  • 3xicaD
    3xicaD Posts: 1

    I had the same problem with that code it doesn't work for me. But I resolved it just changing the (rm) for RM means in capital letters that worked for me. I hope that can help more!! 
     Thanks for alot for the post.

  • on step 5 when putting the first command says there is no such file

     

  • MoreCoffee
    MoreCoffee Posts: 46 Staff member 🤠

    @DaySleeper wrote:

    on step 5 when putting the first command says there is no such file


    Make sure to replace <your disk> with the name of your actual disk, and make sure it is mounted. Look to step 2 to find the correct disk name and mount it. It's also important that you keep the quotes around the path in case your disk name contains any spaces.

  • avisol
    avisol Posts: 1

    The very clear solution, It worked for me. Thanks