External local storage files showing to all users

Support intro
longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.2.5
Operating system and version (eg, Ubuntu 20.04): Operating System: Linux 5.15.21-v8+ aarch64 Raspberry pi 4 8gb with nextcloudpi
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.0.15

The issue you are facing:
Install local usb storage to the usb of the Raspbery pi and when the storage it loaded into the external storage app it shows the files to all users when uploaded instead of separating each user to share the storage.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. usb to storage and install location into external storage
  2. open 2 different users and upload 1 file into the storage
  3. go to second user and see if the file shows that user 1 uploaded

The output of your Nextcloud log in Admin > Logging:

no error shows for this scenario 

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

NextCloudPi version  v1.46.7
NextCloudPi image    NextCloudPi_10-08-21
OS                   Debian GNU/Linux 10. 5.15.21-v8+ (aarch64)
automount            yes
USB devices          sda sdb sdc sdd
datadir              /var/www/nextcloud/data
data in SD           yes **in external usb with OS** no sd
data filesystem      ext2/ext3
data disk usage      20G/147G
rootfs usage         20G/147G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    22.2.5.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          up
Postfix service      up
internet check       ok
port check 80        closed
port check 443       open
IP                   
gateway              
interface            eth0
certificates         
NAT loopback         no
uptime               2days

Screenshot 2022-02-18 175054

There are actually two types of external storage: mounted in the admin’s settings, or mounted by an individual user. It sounds like you may have used the admin’s settings.

Thank you
Yes I have it setup in admin so all users can use the storage. Is there a way 2 separate them though so each user only sees there files that are uploaded to it?

I don’t think so within the same external storage mount point. Instead you might try mounting a subfolder per user.