I am starting to use user websites on my FBx, so something like <mywebsite.xx/~myaccoundname/>. It’s working fine, following the manual.
Is it possible to require log-in to access these websites? It shall only be visible to selected people, which are not connected locally.
I had the same use case. I used the Sharing app and created a share. Since it uses the Apache web server, you can put your website in the share’s directory and Apache will serve it to logged in users. I believe these users might need to be part of a group.
I believe user websites are always public. Anyway, I think the Sharing app will give you better access control.
That sounds like a good approach.
I installed the app, created a share and a user with an appropriate group. How do I get content in that share now? I can access my box e.g. through Gnome/Nautilus.
Do I have to create a directory under root /share/ (with which rights)?
There are several methods to get files into the directory of the share.
Probably, the easiest is SFTP.
You can use a GUI application like FileZilla and connect to your box via SFTP and upload your files to the directory.
If your Nautilus supports SFTP you can do that from your file manager.
A requirement however is using a user that has SSH access to the machine and permissions to access the share (probably your admin user or a user that is part of the ssh group).
Where did you create the share? Does the user that you intend to make the uploads with have permissions to write to it?
If I called the share in Plinth “myshare”, do I have to create a directory directly under root called “myshare”? In 2020 there were discussions about shares under /var/lib/freedombox, so I am not sure where the system will look for the directory to share.
When you created the share, you had to point it to a directory. I think you can edit the share and point it to the correct directory.
Yes, /var/lib/freedombox is where shares are created. You could create a sharing directory and have sub-directories in it for each new share you create. I’m suggesting this sharing directory to hold all shares, because, if you start using Samba, those shares will also be hosted in /var/lib/freedombox.
So, summarizing, yes you can create a /var/lib/freedombox/sharing/myshare directory. Then make sure that the share is pointed to this directory. Then upload the files to it and you should be set.
Thanks a lot, that was the bit I have been missing.
I changed the owner of that directory from root to the one I use to fill the directory, however group remained “root”. Was this actually necessary?
I will try to put my learnings in the manual, there might be more people like me who stumble over this issue.
It seems the Sharing app expects an admin that knows how to create the shares. As you pointed out, the manual does not explain this path creation process to host the share in storage. I’m sure that documenting the process for the manual will be welcomed by all.
I really appreciate your support. I’d never managed to set this up by myself.
Tomorrow I will start updating the manual.