@deljones I don’t know if you’re still figuring this out (sorry to revive an old topic!), but I managed to do this a few days ago. My users can now see their own files, and no one else’s.
To do this, you should first create Yunohost user accounts for the people who will use Filebrowser, in the Yunohost Admin > Users > +New User. Let’s call them Bob and Alice.
Make your users’ own directories where their files will be placed.
sudo mkdir /home/yunohost.app/filebrowser/bob
sudo mkdir /home/yunohost.app/filebrowser/alice
Check the ownership of the contents of the /filebrowser
directory with ls -l
. The default setting has them belonging to the root
group (if I remember correctly… or it might have been www-data
– either way, it’s not what we want):
sudo ls -l /home/yunohost.app/filebrowser/
Check that Bob and Alice are members of the filebrowser
group:
groups bob
groups alice
The results should include filebrowser.main
.
If they are members, change the group that owns the /bob
and /alice
directories from the root
group (or whatever it is) to the filebrowser
group:
sudo chgrp filebrowser /home/yunohost.app/filebrowser/bob
sudo chgrp filebrowser /home/yunohost.app/filebrowser/alice
Then give write permission to the group for those two folders, so the users can upload and edit files:
sudo chmod g+w /home/yunohost.app/filebrowser/bob
sudo chmod g+w /home/yunohost.app/filebrowser/alice
Then open Filebrowser via a web browser, sign in as the admin user (default password is admin
, I believe), and create accounts within Filebrowser for Bob and Alice. In the Admin account, you should see the two directories (created above) appear as folders. Upload two different test files, one to each folder. Sign out from the Admin account and sign in as Bob and as Alice to make sure they can’t see each other’s test files. If they can’t, then you’re done. 