vfs construction ok
This commit is contained in:
@@ -1,38 +1,41 @@
|
||||
# any line with a : creates a user,
|
||||
# username:password
|
||||
# so you can create users anywhere really
|
||||
# but keeping them here is prob a good idea
|
||||
ed:123
|
||||
k:k
|
||||
# create users:
|
||||
# u username:password
|
||||
u ed:123
|
||||
u k:k
|
||||
|
||||
# leave a blank line before each volume
|
||||
# leave a blank line between volumes
|
||||
# (and also between users and volumes)
|
||||
|
||||
# this is a volume,
|
||||
# it shares the contents of /home/...
|
||||
# and appears at "/dj" in the web-ui
|
||||
# create a volume:
|
||||
# share "." (the current directory)
|
||||
# as "/" (the webroot) for the following users:
|
||||
# "r" grants read-access for anyone
|
||||
# "a ed" grants read-write to ed
|
||||
/home/ed/Music/dj
|
||||
/dj
|
||||
.
|
||||
/
|
||||
r
|
||||
a ed
|
||||
|
||||
# display /home/ed/ocv.me as the webroot
|
||||
# and allow user "k" to see/read it
|
||||
/home/ed/ocv.me
|
||||
/
|
||||
# custom permissions for the "priv" folder:
|
||||
# user "k" can see/read the contents
|
||||
# and "ed" gets read-write access
|
||||
./priv
|
||||
/priv
|
||||
r k
|
||||
a ed
|
||||
|
||||
# this shares the current directory as "/pwd"
|
||||
# but does nothing since there's no permissions
|
||||
.
|
||||
/pwd
|
||||
# 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
|
||||
|
||||
# and a folder where anyone can upload
|
||||
# but nobody can see the contents
|
||||
/home/ed/inc
|
||||
/incoming
|
||||
/dump
|
||||
w
|
||||
|
||||
# you can use relative paths too btw
|
||||
# but they're a pain for testing purpose so I didn't
|
||||
# this entire config file can be replaced with these arguments:
|
||||
# -u ed:123 -u k:k -v .::r:aed -v priv:priv:rk:aed -v /home/ed/Music:music:r -v /home/ed/inc:dump:w
|
||||
# but note that the config file always wins in case of conflicts
|
||||
|
||||
Reference in New Issue
Block a user