WIP: sharing2: Network File Storage, version 2
Create shares accessible over HTTP(S), Samba and SFTP. This is an updated version of !1797 (closed) that uses Autofs service to bind mount shares on demand and unmount after timeout. All members of the freedombox-share group and admins can login to use shares.
This solution works only in Debian Testing. In Stable, Autofs was unable to unmount bind mounts and Samba shows a permissions denied error when accessing a share first time.
Some TODO ideas:
-
HTTP(S) shares, access at /shares -
HTTP(S) public shares, access at /share/--share_name-- -
HTTP(S) public_html folder in the share is always public, access at /share/--share_name-- or /share/--share_name--/--user_name-- in case of a Home share -
Samba private shares, access at smb://freedombox.local/shares -
Samba open shares, access at smb://freedombox.local/--share_name-- -
SFTP shares, access at sftp://freedombox.local or sftp://freedombox.local/shares if admin -
add soft link to the shares for admins /home/--user_name--/shares --> /var/lib/freedombox/shares_root/homes/--user_name-- (admins are not sftp-chrooted) -
read-only shares, bind mount with 'ro' parameter. -
share any folder -
blue Sharing app logo, looks better than black -
disable the SFTP option if SSH service is disabled -
disable the Samba option if Samba is not installed -
miniDLNA shares -
users: add soft link to the shares for admins /home//shares --> /var/lib/freedombox/shares_root/homes/--user_name-- -
make this app work in Debian Stable -
update shares after a disk mount/unmount and after boot -
allow limit access to the groups ? -
users: allow to create virtual (actually, real) groups (family, friends, school, dev-team ...)? -
users: update shares after user operations -
samba: link to this app for configuration -
sharing: replace with this app -
make user home shares writable to the members of freedombox-share group so that apps can write into user home folders -
storage: update directory selection form to use updated Sharing app -
storage: allow to select user home shares from the directory selection form -
make disks portable between FreedomBoxes, recursively overwrite share folder owner/group/permissions -
improve app texts -
add manual -
performance / unit / functional tests -
tests with external storage, different hardware
Edited by Veiko Aasa