From e85a71070eb086a2cf39bb0202d8978b0bb5ef2d Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 3 Aug 2025 21:42:26 +0000 Subject: [PATCH] docs: groups; closes #461 --- README.md | 6 ++++++ copyparty/__main__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 93b6a464..46d691a0 100644 --- a/README.md +++ b/README.md @@ -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] diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 21bda508..9db3a4f5 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -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