File browser (DietPi) external HDD - You don't have permissions to access this

Creating a bug report/issue

Required Information

  • DietPi version | cat /boot/dietpi/.version G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=14
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘not applicable’
    G_LIVE_PATCH_STATUS[1]=‘applied’
    G_LIVE_PATCH_STATUS[2]=‘applied’

  • Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN’ bullseye 0

  • Kernel version | uname -a Linux DietPi 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3) RPi4 2GB

  • Power supply used | (EG: 5V 1A RAVpower) OEM

  • SD card used | (EG: SanDisk ultra) Factory type 64GB

Additional Information (if applicable)

  • Software title | (EG: Nextcloud) File Browser
  • Was the software title installed freshly or updated/migrated? Freshly
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. … Log-in
  2. … Get message when open a folder (usb mount folder) - You don’t have permissions to access this.

Expected behaviour

  • … Open and see the folders/files

Actual behaviour

  • … Error message

Extra details

  • … I tried solve with this:
cd /mnt/dietpi_userdata/filebrowser
systemctl stop filebrowser.service
/opt/filebrowser/filebrowser config set -r /
systemctl restart filebrowser.service

Result:
Sign up:          false
Create User Dir:  false
Auth method:      json
Shell:              

Branding:
  Name:                    
  Files override:          
  Disable external links:  false
  Color:                   

Server:
  Log:           stdout
  Port:          8084
  Base URL:      
  Root:          /
  Socket:        
  Address:       0.0.0.0
  TLS Cert:      
  TLS Key:       
  Exec Enabled:  false

Defaults:
  Scope:         .
  Locale:        en
  View mode:     list
  Single Click:  false
  Commands:      
  Sorting:
    By:   name
    Asc:  false
  Permissions:
    Admin:     false
    Execute:   true
    Create:    true
    Rename:    true
    Modify:    true
    Delete:    true
    Share:     true
    Download:  true

Auther configuration (raw):

{
  "recaptcha": null
}

Topic: Upload backup permission denied - #11 by Jappe

Filebrowser is running with own dedicated user, hence this once needs permission to your target folder. What folder you like to access? Which file system format you are using on your HDD?

Hi,
I use EXT4, I didn’t found the file browser user with getent group command.

the user don’t have an own group.

root@DietPi3:~# cat /etc/passwd | grep filebrowser
filebrowser:x:998:1000::/mnt/dietpi_userdata/filebrowser:/usr/sbin/nologin
root@DietPi3:~#

You need to give access to the filebrowser user on your HDD

1 Like

Thanks for your help!
I put the filebrowser user in the correct groups and now working :slight_smile:

root@DietPi:~# usermod -a -G users filebrowser
root@DietPi:~# usermod -a -G dietpi filebrowser

1 Like