docs: groups; closes #461

This commit is contained in:
ed 2025-08-03 21:42:26 +00:00
parent d0499257c8
commit e85a71070e
2 changed files with 7 additions and 1 deletions

View file

@ -513,12 +513,17 @@ anyone trying to bruteforce a password gets banned according to `--ban-pw`; defa
and if you want to use config files instead of commandline args (good!) then here's the same examples as a configfile; save it as `foobar.conf` and use it like this: `python copyparty-sfx.py -c foobar.conf`
* you can also `PRTY_CONFIG=foobar.conf python copyparty-sfx.py` (convenient in docker etc)
```yaml
[accounts]
u1: p1 # create account "u1" with password "p1"
u2: p2 # (note that comments must have
u3: p3 # two spaces before the # sign)
[groups]
g1: u1, u2 # create a group
[/] # this URL will be mapped to...
/srv # ...this folder on the server filesystem
accs:
@ -528,6 +533,7 @@ and if you want to use config files instead of commandline args (good!) then her
/mnt/music # which is mapped to this folder
accs:
r: u1, u2 # only these accounts can read,
r: @g1 # (exactly the same, just with a group instead)
rw: u3 # and only u3 can read-write
[/inc]

View file

@ -578,7 +578,7 @@ def get_sects():
--grp takes groupname:username1,username2,...
and groupnames can be used instead of usernames in -v
by prefixing the groupname with %
by prefixing the groupname with @
list of permissions:
"r" (read): list folder contents, download files