raspiblitz: Permission issues on 1.10.0rc5

First of all, I’m running on a minipc (amd64 image). Managed to install Debian, ran build_sdcard.sh and after some issues with the blockchain and SSD, and a new IBD, the node is up and running! (I’ll try and document this later)

I found a couple of issues, now the node is running (BTC and LND), which seem related to permissions:

  • nginx: nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 2023/09/07 09:49:42 [emerg] 145892#145892: open() "/run/nginx.pid" failed (13: Permission denied) nginx: configuration file /etc/nginx/nginx.conf test failed
  • Although i could install thunderhub, can’t access the webpage: sudo service thunderhub status ● thunderhub.service - ThunderHub daemon Loaded: loaded (/etc/systemd/system/thunderhub.service; enabled; preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2023-09-07 09:50:49 EDT; 4s ago Process: 156363 ExecStart=/usr/bin/npm run start (code=exited, status=127) Main PID: 156363 (code=exited, status=127)
  • RTL, fails on install: # Get the RTL Source Code Cloning into '/home/rtl/RTL'... remote: Enumerating objects: 37247, done. remote: Counting objects: 100% (1607/1607), done. remote: Compressing objects: 100% (628/628), done. remote: Total 37247 (delta 1109), reused 1443 (delta 976), pack-reused 35640 Receiving objects: 100% (37247/37247), 274.56 MiB | 23.12 MiB/s, done. Resolving deltas: 100% (30716/30716), done. /home/admin/config.scripts/bonus.rtl.sh: line 146: cd: /home/rtl/RTL: Permission denied fatal: not a git repository (or any of the parent directories): .git sudo: unable to execute /home/admin/config.scripts/blitz.git-verify.sh: Permission denied
  • managed to install LIT, but can’t login as it says wrong password
  • webUI also says wrong password, or doesn’t open at all

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 15

Commits related to this issue

Most upvoted comments

so DIR_MODE should be uncommented and set to 0755 ?

yes, that should work or we need to change the adduser commands to (eg for a user: test):

sudo adduser --system --group --home /home/test test

I think changing the commands is better than modifying the default behaviour, but a on an individual system both changes result in the same.

Basically now you should succeed with the steps:

  • install debian on SSD

  • ssh into PC with pi / raspiblitz

  • change in /etc/adduser.conf

#DIR_MODE=0700

to

DIR_MODE=0755
  • run sudo build_sdcard.sh …
  • reboot
  • ssh with admin / raspiblitz

The problem is because in the difference in: /etc/adduser.conf Debian 11:

# If DIR_MODE is set, directories will be created with the specified
# mode. Otherwise the default mode 0755 will be used.
DIR_MODE=0755

Debian 12:

# The permissions mode for home directories of non-system users.
# Default: DIR_MODE=0700
#DIR_MODE=0700

# The permissions mode for home directories of system users.
# Default: SYS_DIR_MODE=0755 
#SYS_DIR_MODE=0755

Yes latest Debian.

Process was :

  1. install debian on SSD
  2. ssh into PC with pi / raspiblitz
  3. run sudo build_sdcard.sh .....
  4. reboot
  5. ssh with admin / raspiblitz