# Multiple Users on same instance

**URL:** <https://forum.rclone.org/t/multiple-users-on-same-instance/26767>\
**Category:** Feature\
**Created:** [September 30, 2021, 11:40am UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767 "2021-09-30T11:40:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![solcapltd](https://forum.rclone.org/user_avatar/forum.rclone.org/solcapltd/32/10420_2.png) [@solcapltd](https://forum.rclone.org/u/solcapltd)\
**Post date:** [September 30, 2021, 11:40am UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/1 "2021-09-30T11:40:53Z")

</div>

New to the forum- long time user of Rclone-

We have designed a program using Rclone to pull data from different clouds, display, and with a single click push to our own storage solution.

We want to do this with multiple users simultaneously.

We could go the rout of 1 user= 1 instance , but that seems problematic.

What we are trying to do is figure out a way to have multiple users (up to 30 or so) on a single instance.

Obviously we need to build a DB for log in credentials, security tokens, etc, which we are working on, but even with all of that, it doesn't appear that the current code supports multiple users on the same instance.

Any help/ suggestions would be greatly appreciated.

Maybe use SysV semaphores  
Since the script is not the only program calling rclone, then I think I need to intercept all calls - instead of putting this code in the program, could replace rclone by wrapper that implements the parallelism constraint as above and then calls the real program.

this is the only thought I have on how to accomplish this

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 1, 2021, 2:31pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/2 "2021-10-01T14:31:54Z")

</div>

How are you serving the data to users? There is the auth proxy which you may be able to use.

Eg

[https://rclone.org/commands/rclone\_serve\_webdav/#auth-proxy](https://rclone.org/commands/rclone_serve_webdav/#auth-proxy)

---

<div class="post-metadata">

**Author:** ![solcapltd](https://forum.rclone.org/user_avatar/forum.rclone.org/solcapltd/32/10420_2.png) [@solcapltd](https://forum.rclone.org/u/solcapltd)\
**Post date:** [October 1, 2021, 2:40pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/3 "2021-10-01T14:40:03Z")

</div>

That very well may work, we would just need to figure out a way to implement a 2 step verification(for our purposes) into it and get multiple users on the same instance.

I believe this is what we are currently using, which gives us 1 user per instance. The problem we are running into is that when we add another user, we add a second instance running, which works for small scale, 1-100 users, but not so much when we are talking 1,000s of users, and 1000's of instances running .

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 1, 2021, 2:41pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/4 "2021-10-01T14:41:25Z")

</div>

The auth-proxy shares one instance between many users.

I'm unsure if it will work for you though as you haven't told me how the data is being served to users...

---

<div class="post-metadata">

**Author:** ![solcapltd](https://forum.rclone.org/user_avatar/forum.rclone.org/solcapltd/32/10420_2.png) [@solcapltd](https://forum.rclone.org/u/solcapltd)\
**Post date:** [October 1, 2021, 3:23pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/5 "2021-10-01T15:23:53Z")

</div>

My apologies, as I completely ignored your question. Currently just using your web API to list directories, but we want to build out our own. In that respect I guess that is up for debate. Is there a certain method that would make the Auth-Prox a more practical option than others.

May serve up via Websockets, but for time constraints on the project, we are slightly shying away from that option.

Again, at this point we are open to just about anything.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 1, 2021, 4:28pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/6 "2021-10-01T16:28:38Z")

</div>

> [@solcapltd](#):
>
> Currently just using your web API to list directories

You mean the rclone API as described in [Remote Control / API](https://rclone.org/rc) ?

What you'd do is make a new `backend` for each user with different auth in it. These will run concurrently in one `rclone rcd` instance and when they haven't been used for a while (5 minutes I think) rclone will get rid of them.

So I don't think multi-user should be a problem.

---

<div class="post-metadata">

**Author:** ![solcapltd](https://forum.rclone.org/user_avatar/forum.rclone.org/solcapltd/32/10420_2.png) [@solcapltd](https://forum.rclone.org/u/solcapltd)\
**Post date:** [October 1, 2021, 5:09pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/7 "2021-10-01T17:09:01Z")

</div>

That sounds pretty ideal.

We are currently using --rc. From what I gather from above you can have multiple users logged into the same instance at once, which is great (and about half of our problem solved).

I guess the only other question I would have would be if we had multiple active users(which we now know is possible), and they both make an FTP request at the same time, can we pull both simultaneously, or would it stage them?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 4, 2021, 6:40pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/8 "2021-10-04T18:40:33Z")

</div>

> [@solcapltd](#):
>
> I guess the only other question I would have would be if we had multiple active users(which we now know is possible), and they both make an FTP request at the same time, can we pull both simultaneously, or would it stage them?

Both requests should go ahead concurrently.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [December 4, 2021, 2:40pm UTC](https://forum.rclone.org/t/multiple-users-on-same-instance/26767/9 "2021-12-04T14:40:57Z")

</div>

Closed on December 4, 2021, 2:40pm UTC

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