If I execute a command: ./uplink.exe share --disallow-reads --disallow-lists
I get an error saying: Error: permission is empty
Also, when I execute ./uplink.exe share --disallow-reads
it doesn’t seem to affect a --url share, if previously set.
Is there an easy way to revoke any share settings that were set previously across a project? Also, how does inheritance work in terms of share settings?
You need to specify --readonly=false first, then additional restrictions. Because it’s readonly by default, so when you disallow reads and lists, you basically does not provides any allowance.
Example
./uplink share --readonly=false --disallow-reads --disallow-lists
Sharing access to satellite 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs@eu1.storj.io:7777
=========== ACCESS RESTRICTIONS ==========================================================
Download : Disallowed
Upload : Allowed
Lists : Disallowed
Deletes : Allowed
NotBefore : No restriction
NotAfter : No restriction
Paths : WARNING! The entire project is shared!
If it’s a root access, then it’s not possible to do from the CLI. It’s possible only from the Satellite UI on Generating and Managing Access Grants - Storj Docs - you need to delete an access grant, then all derived access will be revoked at once.