Change the Insync autostart daemon to run as different user than root

Hi,

Can the Insync headless daemon on an Ubuntu server be configured to run under a different user account then root when it is set to autostart?

Werner

Tagging our engineer @lpugoy to help you out with this :slight_smile:

@WvdW: The insync-headless process is started on boot by an entry in the user’s crontab, so to run it as a different user you can try the following steps:

  1. Stop Insync.
  2. Copy the root user’s ~/.config/Insync folder to the new user’s home folder.
  3. Change the ownership of the Insync folder to the new user. If it is located inside /root/, it might be better to move it to a different location first before doing step 1. The Insync folder can be moved with the insync-headless move_folder command.
  4. Put @reboot insync-headless start >/dev/null 2>&1 to the new user’s crontab.

Hope this helps.