Skip to content

Permissions

Each Dojo service stores its data in a dedicated Docker volume. The tabs below show how to check the directory permissions for each service, along with example output.

Check the volume directory permissions:

Terminal window
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-bitcoind/

Example output:

Terminal window
Total 12
4 drwxr-xr-x 3 root root 4096 Dec 21 23:14 .
4 drwx------ 9 root root 4096 Jan 26 22:01 ..
4 drwxr-xr-x 5 1105 1108 4096 Jan 31 19:47 _data

Check the individual _data permissions:

Terminal window
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-bitcoind/_data/

Example output:

Terminal window
total 16624
4 drwxr-xr-x 5 1105 1108 4096 Jan 31 19:47 .
4 drwxr-xr-x 3 root root 4096 Dec 21 23:14 ..
4 -rw------- 1 1105 1108 37 Jan 30 15:17 banlist.dat
4 -rw------- 1 1105 1108 3 Jan 28 20:15 bitcoind.pid
132 drwx------ 3 1105 1108 131072 Jan 31 08:04 blocks
132 drwx------ 2 1105 1108 131072 Jan 31 05:34 chainstate
10588 -rw------- 1 1105 1108 10838553 Jan 31 19:40 debug.log
244 -rw------- 1 1105 1108 247985 Jan 19 14:07 fee_estimates.dat
4 drwx------ 3 1105 1108 4096 Dec 21 23:29 indexes
0 -rw------- 1 1105 1108 0 Dec 21 23:29 .lock
1392 -rw------- 1 1105 1108 1424966 Jan 19 14:07 mempool.dat
4116 -rw------- 1 1105 1108 4214646 Jan 31 19:47 peers.dat

To change permissions, use the following command:

Terminal window
sudo chown xxxx:xxxx /mnt/ssd/docker/volumes/my-dojo_data-"Container"/_data
  • Replace xxxx:xxxx with the ownership you want.
  • Replace "Container" with the container name.

For example, to change bitcoind permissions to 1105:1108:

Terminal window
sudo chown 1105:1108 /mnt/ssd/docker/volumes/my-dojo_data-bitcoind/_data