User permission configuration.
Each webd process instant supports three pairs of username/password settings with different permissions configurations,
and the guest's permissions can also be set independently, but all of them share the same shared path. So it's not a real multi-user supporting.
command line:
-u auth_tag:user_name:pass_word
-g auth_tag
configuration file:
Webd.User auth_tag user_name pass_word
Webd.Guest auth_tag
The '-g' and 'Webd.Guest' are used to set the guest's permissions.
The '-u' and 'Webd.User' are used to set the permissions for a 'user_name pass_word' combination.
Note: Same 'user_name' with different 'pass_word' can associate with different 'auth_tag'.
This meaning same 'user_name' login with different 'pass_word' may have different permissions, very fun.
'user_name' and 'pass_word' can be regular string.
'auth_tag' is a combination of one or more the below characters, each one stand for a permission type.
r: Access files.
l: List directories.
u: Upload file.
m: Delete, move, and rename files.
S: Show hidden files and directories.
T: Use webpage to play media files.
D: Add 'download' atrribute to file link.
For example, a command line parameter:
-u rlum:user1:pass
or configuration file with below line:
Webd.User rlum user1 pass
will give 'user1' permissions contain of: r: Access files, l: List directories, u: Upload file, m: Delete move and rename files.
A command line parameter:
-g 0
or configuration file with below line:
Webd.Guest 0
will fully stop guest from accessing webd.
All the 'auth_tag' characters can be used independently, none of them depends on another.
So the 'auth_tag' combination can be very customizable and flexible.
If a user with 'auth_tag' contain only 'u', then this user can only upload file, has no other permissions, event not list files.