# create users: # u username:password u ed:123 u k:k # leave a blank line between volumes # (and also between users and volumes) # create a volume: # share "." (the current directory) # as "/" (the webroot) for the following users: # "r" grants read-access for anyone # "rw ed" grants read-write to ed . / r rw ed # custom permissions for the "priv" folder: # user "k" can only see/read the contents # user "ed" gets read-write access ./priv /priv r k rw ed # this does the same thing: ./priv /priv r ed k w ed # 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 # and set the e2d flag to enable the uploads database # and set the nodupe flag to reject duplicate uploads /home/ed/inc /dump w c e2d c nodupe # this entire config file can be replaced with these arguments: # -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:c,nodupe # but note that the config file always wins in case of conflicts