Skip to content

Instantly share code, notes, and snippets.

@jmaddington
Last active March 6, 2024 14:32
Show Gist options
  • Save jmaddington/cc96ffc020916569fd03a0428dfaccc7 to your computer and use it in GitHub Desktop.
Save jmaddington/cc96ffc020916569fd03a0428dfaccc7 to your computer and use it in GitHub Desktop.
OneDrive troubleshooting from the terminal

Update permissions on CloudStorage folder, includes OneDrive

Replace username with the actual user

  1. Find the username users

Example:

users
jonathanaddington
  1. Move into the CloudStorage folder

cd /Users/jonathanaddington/Library/CloudStorage

  1. Update ownership: chown -R username:staff *

  2. Update permissions chmod -R o+rwx *

Restarting processes

These commands kill and start the SharePoint and OneDrive processes, it isn't clear what the different between those two executables are. They run independently of each other but are both contained in OneDrive.app

Restarting processes

Restarting processes

Restart Microsoft SharePoint process

This restarts the process named Microsoft SharePoint, but not the entire OneDrive client

Stop the process: pkill "Microsoft SharePoint" Start the process: "/Applications/OneDrive.app/Contents/Microsoft SharePoint.app/Contents/MacOS/Microsoft SharePoint" &

Restart OneDrive Process

This restarts the OneDrive client, but not the Microsoft SharePoint process. Stop the process: pkill OneDrive Start the process: /Applications/OneDrive.app/Contents/MacOS/OneDrive &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment