2021-11-06 03:11:21 +01:00
|
|
|
# append some arguments to the commandline;
|
|
|
|
|
# the first space in a line counts as a separator,
|
|
|
|
|
# any additional spaces are part of the value
|
|
|
|
|
-e2dsa
|
|
|
|
|
-e2ts
|
|
|
|
|
-i 127.0.0.1
|
|
|
|
|
|
2019-05-29 23:46:17 +00:00
|
|
|
# create users:
|
|
|
|
|
# u username:password
|
|
|
|
|
u ed:123
|
|
|
|
|
u k:k
|
2019-05-28 20:49:58 +00:00
|
|
|
|
2019-05-29 23:46:17 +00:00
|
|
|
# leave a blank line between volumes
|
|
|
|
|
# (and also between users and volumes)
|
2019-05-28 20:49:58 +00:00
|
|
|
|
2019-05-29 23:46:17 +00:00
|
|
|
# create a volume:
|
|
|
|
|
# share "." (the current directory)
|
|
|
|
|
# as "/" (the webroot) for the following users:
|
2019-05-28 20:49:58 +00:00
|
|
|
# "r" grants read-access for anyone
|
2021-07-22 23:48:29 +02:00
|
|
|
# "rw ed" grants read-write to ed
|
2019-05-29 23:46:17 +00:00
|
|
|
.
|
|
|
|
|
/
|
2019-05-28 20:49:58 +00:00
|
|
|
r
|
2021-07-22 23:48:29 +02:00
|
|
|
rw ed
|
2019-05-28 20:49:58 +00:00
|
|
|
|
2019-05-29 23:46:17 +00:00
|
|
|
# custom permissions for the "priv" folder:
|
2021-07-22 23:48:29 +02:00
|
|
|
# user "k" can only see/read the contents
|
|
|
|
|
# user "ed" gets read-write access
|
2019-05-29 23:46:17 +00:00
|
|
|
./priv
|
|
|
|
|
/priv
|
2019-05-28 20:49:58 +00:00
|
|
|
r k
|
2021-07-22 23:48:29 +02:00
|
|
|
rw ed
|
|
|
|
|
|
2021-11-06 03:09:03 +01:00
|
|
|
# this does the same thing,
|
|
|
|
|
# and will cause an error on startup since /priv is already taken:
|
2021-07-22 23:48:29 +02:00
|
|
|
./priv
|
|
|
|
|
/priv
|
|
|
|
|
r ed k
|
|
|
|
|
w ed
|
2019-05-28 20:49:58 +00:00
|
|
|
|
2019-05-29 23:46:17 +00:00
|
|
|
# share /home/ed/Music/ as /music and let anyone read it
|
|
|
|
|
# (this will replace any folder called "music" in the webroot)
|
|
|
|
|
/home/ed/Music
|
|
|
|
|
/music
|
|
|
|
|
r
|
2019-05-28 20:49:58 +00:00
|
|
|
|
|
|
|
|
# and a folder where anyone can upload
|
|
|
|
|
# but nobody can see the contents
|
2021-05-02 09:48:19 +02:00
|
|
|
# and set the e2d flag to enable the uploads database
|
|
|
|
|
# and set the nodupe flag to reject duplicate uploads
|
2019-05-28 20:49:58 +00:00
|
|
|
/home/ed/inc
|
2019-05-29 23:46:17 +00:00
|
|
|
/dump
|
2019-05-28 20:49:58 +00:00
|
|
|
w
|
2021-05-02 09:48:19 +02:00
|
|
|
c e2d
|
|
|
|
|
c nodupe
|
2019-05-28 20:49:58 +00:00
|
|
|
|
2019-05-29 23:46:17 +00:00
|
|
|
# this entire config file can be replaced with these arguments:
|
2021-09-18 23:45:43 +02:00
|
|
|
# -u ed:123 -u k:k -v .::r:a,ed -v priv:priv:r,k:rw,ed -v /home/ed/Music:music:r -v /home/ed/inc:dump:w:c,e2d,nodupe
|
2019-05-29 23:46:17 +00:00
|
|
|
# but note that the config file always wins in case of conflicts
|