<p><strong>Disclaimer:</strong> Having some linux permissions issues, but it <em>is</em> related to setting up a Bitcoin Node, and an Electrum Server; <em>if there's a better place to post this, please lmk!</em>.</p>
<p>I've been following the <a href="https://raspibolt.org/" rel="nofollow noreferrer">RaspiBolt</a> guide in order to setup a Bitcoin Node, an Electrum Server (<a href="https://github.com/romanz/electrs" rel="nofollow noreferrer">electrs</a>). I'm doing this in Ubuntu Server 24.04.1 LTS.</p>
<p>In the guide, the OS is booted from an external hard drive; I'm booting from the Pi 5's micro SSD card; <strong>I have the entire Bitcoin blockchain AND the electrs indexes stored in a mounted SSD</strong></p>
<p>In the <a href="https://raspibolt.org/guide/bitcoin/bitcoin-client.html#create-the-bitcoin-user" rel="nofollow noreferrer">Bitcoin client</a> section, the guide has you create a user and gives it access to run the bitcoin daemon. Later, it has you setup a service <a href="https://raspibolt.org/guide/bitcoin/bitcoin-client.html#create-the-bitcoin-user" rel="nofollow noreferrer">so that the bitcoin daemon automatically starts when the machine starts</a>. By adding an entry in <code>/etc/fstab</code>, I've managed to get the external drive to be mounted when the machine starts, <strong>and I'm mounting it with the <code>bitcoin</code> user both as user and group owner</strong>; the service works just as expected.</p>
<p>However, I'm not having the same luck with <a href="https://raspibolt.org/guide/bitcoin/electrum-server.html#autostart-on-boot" rel="nofollow noreferrer">the electr service</a> the guide also has you setup. <strong>When I try starting electrs as the <code>electrs</code> user, the server crashes because it doesn't have read/write permissions to the folder in the external drive where the electrs db is stored</strong>.</p>
<p>What might be a good solution for this? Is there a way to mount the drive with access to multiple users? The <code>electrs</code> user <strong>IS</strong> in the <code>bitcoin</code> group, so I thought that should have sufficed to access the mounted drive?</p>

CC BY-SA 4.0
2024-12-04T10:12:35.690Z
does every folder in the path to data (including parent folders all the way up to the root folder) have both read and execute (traverse folder) permissions for either Bitcoin group or world?
RedGrittyBrick
CC BY-SA 4.0
2024-12-09T01:29:27.943Z
I think they may not have? I had added an entry to `/etc/fstab` automatically mount my external drive at boot time. I was searching around and added `umask=002` as part of the entry's options, and after that it worked. What exactly does 002 mean?
desolate_mountain
<electrum><linux><raspberry-pi><daemon><electrum-server>
(Permission) Issue running electrum server as a service in Raspberry Pi 5
desolate_mountain
# (Permission) Issue running electrum server as a service in Raspberry Pi 5

(Asked by: username_0 on 2024-12-03)

**Disclaimer:** Having some linux permissions issues, but it *is* related to setting up a Bitcoin Node, and an Electrum Server; *if there's a better place to post this, please lmk!*.

I've been following the [RaspiBolt](https://raspibolt.org/) guide in order to setup a Bitcoin Node, an Electrum Server ([electrs](https://github.com/romanz/electrs)). I'm doing this in Ubuntu Server 24.04.1 LTS.

In the guide, the OS is booted from an external hard drive; I'm booting from the Pi 5's micro SSD card; **I have the entire Bitcoin blockchain AND the electrs indexes stored in a mounted SSD**

In the [Bitcoin client](https://raspibolt.org/guide/bitcoin/bitcoin-client.html#create-the-bitcoin-user) section, the guide has you create a user and gives it access to run the bitcoin daemon. Later, it has you setup a service [so that the bitcoin daemon automatically starts when the machine starts](https://raspibolt.org/guide/bitcoin/bitcoin-client.html#create-the-bitcoin-user). By adding an entry in `/etc/fstab`, I've managed to get the external drive to be mounted when the machine starts, **and I'm mounting it with the `bitcoin` user both as user and group owner**; the service works just as expected.

However, I'm not having the same luck with [the electr service](https://raspibolt.org/guide/bitcoin/electrum-server.html#autostart-on-boot) the guide also has you setup. **When I try starting electrs as the `electrs` user, the server crashes because it doesn't have read/write permissions to the folder in the external drive where the electrs db is stored**.

What might be a good solution for this? Is there a way to mount the drive with access to multiple users? The `electrs` user **IS** in the `bitcoin` group, so I thought that should have sufficed to access the mounted drive?

**Tags:** electrum, linux, raspberry-pi, daemon, electrum-server

> **Comments:**
> **username_1**: does every folder in the path to data (including parent folders all the way up to the root folder) have both read and execute (traverse folder) permissions for either Bitcoin group or world?  
> **username_0**: I think they may not have? I had added an entry to `/etc/fstab` automatically mount my external drive at boot time. I was searching around and added `umask=002` as part of the entry's options, and after that it worked. What exactly does 002 mean?  

---

## 0 answers

