rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: raytracer on May 21, 2018, 10:18:14 PM
-
Just starting with HFS, is there anyway to - instead of showing all shared files/folders on the home screen -require user login and then display only those files/folders that user has permissions for?
Thanks,
Joe
-
it's already implemented in hfs
switch to expert mode
open 'menu' > 'virtual file system'
and check 'List protected items only for users'
by using this option, only items that do not contain a lock will be visible to the user,
for a connected user, those that are not authorized are masked
-
» You can do it this way:
(https://i.imgur.com/ufwll5hm.png) (https://i.imgur.com/ufwll5h.png)
- Right click on the home / icon > Properties...
- Then click on 'Manage accounts', make some users/pass and click OK.
- Then back on the 'Properties' window, and check on the users you made.
- Click OK to apply the changes, and it's done.
Now every time someone visits your site, it will ask an user and password (if some visitor doesn't have it, it will show an 'Unauthorized' message).
Your question is somewhat related to this (https://rejetto.com/forum/index.php?topic=12053.0) question. Currently, there is no 'classic' login form, like most websites have (HFS has only implemented a basic auth pop-up (https://www.google.com/search?q=HTTP+Basic+Authentication+popup&sa=N)).
» EDIT: I was writing my answer while Mars was answering you (his answer is the most appropriate and easy way to do it :) )
-
Thanks, guys.
Mars' method accomplished exactly what I was after.