'Start Dropbox on Mac OS via SSH
I am administrating a remote mac os machine with dropbox installed. I only have ssh access to that machine and needed to restart the system. After that I am not able anymore to use dropbox on the system. It used to work as expected after a local account logged in and started dropbox (or it started automatically, I don't know...)
I found some posts that I should be able to start dropbox via 'open -a "Dropbox"' but that only returned in an error:
LSOpenURLsWithRole() failed for the application /Applications/Dropbox.app with error -54.
The system.log shows a permission error:
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.504): Caller not allowed to perform action: open.40061, action = legacy spawn, code = 1: Operation not permitted, uid = 501, euid = 501, gid = 20, egid = 20, asid = 40027
If I run the open command as super user I got the error -610 which seems to tell me, that the application may not be started as root.
This is the system log of that attempt:
Apr 27 08:58:53 xxx com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.backupd.40218): Failed to bootstrap path:
path = /System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd, error = 2: No such file or directory
Apr 27 08:59:19 xxx com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.504):
Could not import service from caller: caller = open.40242,
service = com.getdropbox.dropbox.3032, error = 134: Service cannot load in requested session
Apr 27 08:59:19 xxx com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.504):
Attempt to spawn app in non-GUI domain: caller = open.40242,
label = [0x0-0x13013].com.getdropbox.dropbox
Is there any way to start dropbox on a new restarted mac os without logging via local connected user to the gui?
Thanks a lot!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
