Where are the "Connect to Server" settings stored in Mac OS X?
Solution 1
They are in ~/Library/Preferences/com.apple.sidebarlists.plist in the favoriteservers dictionary.
Solution 2
I wanted to update this as I was looking and could not find an answer that worked On OS X El Capitan (10.11.5). I started poking around and I found them in a different location.
~/Library/Application Support/com.apple.sharedfilelist/ com.apple.LSSharedFileList.FavoriteServers.sfl
- Copy from the old location.
- Paste to the new location.
- Change the owner (if needed)
- Right (CTRL) Click > Get Info > Sharing and Permissions > Unlock > select or add user (making sure it has read/write > Gear > "Make user the owner"
- You could also use the terminal with "sudo chown 'username' '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.FavoriteServers.sfl' " making sure to replace 'username' with your actual username.
- Relaunch the Finder (might not be required).
In response to the original question, you may be able to put this file in a DropBox folder and run an alias to the Library location. Not sure how it would work with multiple owners and permissions on the file as I don't use dropbox and haven't tested it.
Related videos on Youtube
cwd
Updated on September 18, 2022Comments
-
cwd over 1 year
Where are the "Connect to Server" history and favorites stored in OS X?
Hopefully they are in a pList file somewhere as I'd like to sync them between computers using Dropbox. -
cwd over 11 yearsnice. how can I import / export just that dictionary from the command line?
-
camflan over 11 yearsRead via :
defaults read com.apple.sidebarlists favoriteservers
. changeread
towrite
to write, but you have to have a dictionary to write to the plist. If you just want to add one item, you can usedefaults write com.apple.sidebarlists dict-add key, value