postprefix
12/25/2014 - 8:48 PM

repairDropbox.sh

#!/bin/bash

sudo chflags -R nouchg ~/Dropbox ~/.dropbox
sudo chown "$USER" "$HOME"
sudo chown -R "$USER" ~/Dropbox ~/.dropbox
sudo chmod -RN ~/.dropbox ~/Dropbox
chmod -R u+rw ~/Dropbox ~/.dropbox