# Grant permissions

**URL:** <https://forum.storj.io/t/grant-permissions/24211>\
**Category:** Product Discussions\
**Tags:** rclone\
**Created:** [October 30, 2023, 1:19pm UTC](https://forum.storj.io/t/grant-permissions/24211 "2023-10-30T13:19:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragomir-Ivanov](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dragomir-ivanov/32/1137_2.png) [@Dragomir-Ivanov](https://forum.storj.io/u/Dragomir-Ivanov)\
**Post date:** [October 30, 2023, 1:19pm UTC](https://forum.storj.io/t/grant-permissions/24211/1 "2023-10-30T13:19:29Z")

</div>

Greetings,  
Here is my use case:

1. Having a server, I want to `rclone` DB dumps on the Storj bucket.
2. Configuring `rclone` on the server in question, with Read, Write access rights on the specified bucket.

What happens if a hacker takes over my server. He will be able to overwrite my backup files, because their names are easily predictable. Ideally there should be access right `Create` and a separate `Write`. Thus with `Create` files once uploaded, can’t be overwritten.  
Does that make sense?

All the best, great service!

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [October 30, 2023, 2:43pm UTC](https://forum.storj.io/t/grant-permissions/24211/2 "2023-10-30T14:43:37Z")

</div>

Welcome to the forum! I recommend you read the section in our documentation about [Access Grant management](https://docs.storj.io/learn/concepts/access) and how to use caveats with access grants to limit if people who the access has been shared with can download files in an unlimited manner or only certain files for limited time, or no file downloads at all.

See also [Access Revocation](https://docs.storj.io/learn/concepts/access/access-revocation) and [revoking Access to an Object](https://docs.storj.io/learn/tutorials/quickstart-uplink-cli/sharing-your-first-object/revoke-an-access-to-an-object)  
[Access Restrictions](https://docs.storj.io/learn/concepts/access/access-grants/api-key/restriction#granular-access-control-with-caveats) and [how to generate an access grant with restrictions](https://docs.storj.io/learn/tutorials/quickstart-uplink-cli/sharing-your-first-object/generate-access#restrict-an-access) and [What kind of restrictions can you put on an Access Grant](https://docs.storj.io/support/faqs#what-kind-of-restrictions-can-i-put-on-an-access-grant).

on the other hand, it is recommended you protect your Storj DCS account with multifactor authentication and a strong password, to prevent it from getting easily hacked.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [October 31, 2023, 8:40am UTC](https://forum.storj.io/t/grant-permissions/24211/3 "2023-10-31T08:40:13Z")

</div>

I would suggest to create an access grant with write and perhaps list permissions, but not delete permissions, this will give you an immutable storage. If you [would provide an expiration time during copy](https://docs.storj.io/dcs/api/uplink-cli/cp-command#copy-a-local-file-into-a-bucket-with-an-expiration-date), these objects will be automatically deleted when expired.  
You may also [create an access grant with integrated TTL for objects with the `uplink share --max-object-ttl` command](https://docs.storj.io/dcs/api/uplink-cli/share-command#:~:text=%2D%2Dmax%2Dobject%2Dttl,-The%20object%20is).  
Please note, you will not be able to overwrite an existing objects without delete permissions, so please use different names or prefixes (“subfolders”).

---

<div class="post-metadata">

**Author:** ![Dragomir-Ivanov](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dragomir-ivanov/32/1137_2.png) [@Dragomir-Ivanov](https://forum.storj.io/u/Dragomir-Ivanov)\
**Post date:** [October 31, 2023, 9:13am UTC](https://forum.storj.io/t/grant-permissions/24211/4 "2023-10-31T09:13:09Z")

</div>

Thanks a ton @Alexey !

It is not obvious from the documentation that you actually need `Delete` permission in order to overwrite a file. Perhaps you can add a sentence in the Documentation about this, and spare some answering on the forum. For the moment I don’t need TTL, will clear manually when full.

I really like Storj, thanks again!

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [November 1, 2023, 5:16am UTC](https://forum.storj.io/t/grant-permissions/24211/5 "2023-11-01T05:16:49Z")

</div>

In the objects storage there is no overwrite or modify per-se, you actually will delete an object then upload a new one, but many client programs just hides this under the hood.

---

<div class="post-metadata">

**Author:** ![Dragomir-Ivanov](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dragomir-ivanov/32/1137_2.png) [@Dragomir-Ivanov](https://forum.storj.io/u/Dragomir-Ivanov)\
**Post date:** [November 1, 2023, 9:05am UTC](https://forum.storj.io/t/grant-permissions/24211/6 "2023-11-01T09:05:08Z")

</div>

I got it, thank you @Alexey . Although I am long time software developer, it is my first time working with Object Stores (no S3 experience), so I was trying to match Object operations onto HTTP method requests.

Thanks again,  
Dragomir

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [November 2, 2023, 9:00am UTC](https://forum.storj.io/t/grant-permissions/24211/7 "2023-11-02T09:00:13Z")

</div>

Actually we have documented this behavior:

> **[Understanding Data Immutability in Object Storage - Storj Docs](https://docs.storj.io/learn/concepts/immutability#practical-implementation-pattern)**
>
> The post discusses the concept of immutability in data storage and how Storj implements this concept to ensure secure and unquestionable data preservation.
