From 54e2458a83005738848dcf54042f46a4a73a4189 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Fri, 3 Jul 2020 04:17:33 +0200 Subject: [PATCH] Clarify documentation for USERID and GROUPID. (#316) --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 771e3a5..8a65c0c 100644 --- a/README.md +++ b/README.md @@ -89,8 +89,8 @@ ENVIRONMENT VARIABLES * `USER` - As above, setup a user (See NOTE3 below) * `WIDELINKS` - As above, allow access wide symbolic links * `WORKGROUP` - As above, set workgroup - * `USERID` - Set the UID for the samba server - * `GROUPID` - Set the GID for the samba server + * `USERID` - Set the UID for the samba server's default user (smbuser) + * `GROUPID` - Set the GID for the samba server's default user (smbuser) * `INCLUDE` - As above, add a smb.conf include **NOTE**: if you enable nmbd (via `-n` or the `NMBD` environment variable), you @@ -136,6 +136,10 @@ Add the `-p` option to the end of your options to the container, or set the -v /path/to/directory:/mount \ -d dperson/samba -p +If changing the permissions of your files is not possible in your setup you +can instead set the environment variables `USERID` and `GROUPID` to the +values of the owner of your files. + * High memory usage by samba. Multiple people have reported high memory usage that's never freed by the samba processes. Recommended work around below: