Permissions
Checking Permissions
Section titled “Checking 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:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-bitcoind/Example output:
Total 124 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 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-bitcoind/_data/Example output:
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 chainstate10588 -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.datCheck the volume directory permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-tor/Example output:
total 124 drwxr-xr-x 3 root root 4096 Dec 21 23:14 .4 drwx------ 9 root root 4096 Jan 26 22:01 ..4 drwxr-x--- 8 1104 1107 4096 Jan 28 20:15 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-tor/_dataExample output:
total 324 drwxr-x--- 8 1104 1107 4096 Jan 28 20:15 .4 drwxr-xr-x 3 root root 4096 Dec 21 23:14 ..4 drwxr-x--- 2 1104 1107 4096 Jan 28 20:15 hsv2bitcoind4 drwx------ 2 1104 1107 4096 Jan 28 20:15 hsv2dojo4 drwx------ 3 1104 1107 4096 Jan 28 20:15 hsv3dojo4 drwx------ 3 1104 1107 4096 Jan 18 14:16 hsv3electrs4 drwxr-x--- 3 1104 1107 4096 Jan 28 20:15 hsv3explorer4 drwxr-x--- 3 1104 1107 4096 Jan 31 19:57 .torCheck the volume directory permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-nodejs/Example output:
total 124 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 3 root root 4096 Dec 21 23:29 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-nodejs/_dataExample output:
total 124 drwxr-xr-x 3 root root 4096 Dec 21 23:29 .4 drwxr-xr-x 3 root root 4096 Dec 21 23:14 ..4 drwxr-xr-x 2 "user" "user" 4096 Dec 21 23:29 logsCheck the volume directory permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-nginxExample output:
total 124 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 3 root root 4096 Dec 21 23:29 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-nginx/_dataExample output:
total 124 drwxr-xr-x 3 root root 4096 Dec 21 23:29 .4 drwxr-xr-x 3 root root 4096 Dec 21 23:14 ..4 drwxr-xr-x 2 100 101 4096 Dec 21 23:29 logsCheck the volume directory permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-explorerExample output:
total 124 drwxr-xr-x 3 root root 4096 Jan 18 13:54 .4 drwx------ 9 root root 4096 Jan 26 22:01 ..4 drwxr-xr-x 2 root root 4096 Jan 18 14:16 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-explorer/_dataExample output:
total 32 4 drwxr-xr-x 2 root root 4096 Jan 18 14:16 . 4 drwxr-xr-x 3 root root 4096 Jan 18 13:54 .. 0 -rw-r--r-- 1 "user" "user" 0 Jan 28 20:15 explorer-error.log24 -rw-r--r-- 1 "user" "user" 20945 Jan 28 20:24 explorer-output.logCheck the volume directory permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-mysqlExample output:
total 124 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 999 root 4096 Jan 28 20:15 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-mysql/_dataExample output:
total 122968 4 drwxr-xr-x 5 999 root 4096 Jan 28 20:15 . 4 drwxr-xr-x 3 root root 4096 Dec 21 23:14 .. 32 -rw-rw---- 1 999 adm 32768 Jan 28 20:15 aria_log.00000001 4 -rw-rw---- 1 999 adm 52 Jan 28 20:15 aria_log_control 32 -rw-rw---- 1 999 adm 31577 Jan 28 20:15 ib_buffer_pool12288 -rw-rw---- 1 999 adm 12582912 Feb 1 07:18 ibdata149152 -rw-rw---- 1 999 adm 50331648 Feb 1 07:18 ib_logfile049152 -rw-rw---- 1 999 adm 50331648 Feb 1 07:18 ib_logfile112288 -rw-rw---- 1 999 adm 12582912 Jan 28 20:15 ibtmp1 0 -rw-rw---- 1 999 adm 0 Dec 21 23:29 multi-master.info 4 drwx------ 2 999 adm 4096 Dec 21 23:29 mysql 4 drwx------ 2 999 adm 4096 Dec 21 23:29 performance_schema 4 drwx------ 2 999 adm 4096 Dec 21 23:29 samourai@002dmainCheck the volume directory permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-whirlpoolExample output:
total 124 drwxr-xr-x 3 root root 4096 Aug 11 21:17 .4 drwx------ 7 root root 4096 Aug 11 21:39 ..4 drwxr-x--- 3 1110 1113 4096 Aug 11 22:13 _dataCheck the individual _data permissions:
sudo ls -lsa /mnt/ssd/docker/volumes/my-dojo_data-whirlpool/_dataExample output:
total 124 drwxr-x--- 3 1110 1113 4096 Aug 11 22:13 .4 drwxr-xr-x 3 root root 4096 Aug 11 21:17 ..4 drwxr-x--- 2 1110 1113 4096 Sep 15 15:11 .whirlpool-cliChanging Permissions
Section titled “Changing Permissions”To change permissions, use the following command:
sudo chown xxxx:xxxx /mnt/ssd/docker/volumes/my-dojo_data-"Container"/_data- Replace
xxxx:xxxxwith the ownership you want. - Replace
"Container"with the container name.
For example, to change bitcoind permissions to 1105:1108:
sudo chown 1105:1108 /mnt/ssd/docker/volumes/my-dojo_data-bitcoind/_data