Mounted Google Drive stops sharing over LAN after Windows 10 reboot

Hello.
I have mounted a Google Drive as a local disk using RCLONE, and after restarting the computer it is still mounted. In order for this unit to be accessible through the local network, I have given it permissions. So far everything perfect.
The problem comes after restarting my computer, the unit is still mounted, but somehow the permissions have returned to the initial state.

What can be done?

Notes:

  • Rclone version: 1.52.2
  • OS / Arch: Windows 10 version 2004 / 64 bit
  • Cloud storage system: Google Drive

hello and welcome to the forum,

  • how are you running rclone?
    nssm, task scheduler, or what?

  • how are setting the permissions?

Hello and thank you for such a quick response.

I run rclone using nssm. And the permissions have been assigned as normal. I attached a screenshot.

that is not correct,
at shutdown, the mount is broken.
after a restart, the 'unit' has to be re-mounted again.

  • what is the mount command you are using?

  • with nssm, what is the username that rclone runs as?

  • rclone itself, does not set windows user security permissions.
    you might be able to do that using flags from winfsp.
    or just the built-in windows command cacls
    or command line, net share

  • Mount command:
    mount --allow-other --dir-cache-time 72h --drive-chunk-size 64M --log-level INFO --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit off GDRIVE: G: --config "C:\Users\F\.config\rclone\rclone.conf" --vfs-cache-mode writes

  • It Runs as a service, and "Local System Account" is selected in the service Log On properties.

  • I'll test the flags, and also the suggested commands.

--allow-other does nothing on windows, you can remove it.

for example, if i have a rclone mount as x:
then i can share it like so.
net share xdrive=x: /grant:vserver03,read

1 Like

I want to tell you that it worked perfectly. I have created a scheduled task to run as soon as the system boots. Now the drive is accessible even without my user logging in.

Thank you very much for your help.
Regards.

sure, glad to help.

have you considered https://rclone.org/donate/
i assure you that i do not profit from a donation.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.