Clarify documentation for USERID and GROUPID. (#316)

This commit is contained in:
Hermann Kraus 2020-07-03 04:17:33 +02:00 committed by David Personette
parent 8d908a820f
commit 54e2458a83

View File

@ -89,8 +89,8 @@ ENVIRONMENT VARIABLES
* `USER` - As above, setup a user (See NOTE3 below) * `USER` - As above, setup a user (See NOTE3 below)
* `WIDELINKS` - As above, allow access wide symbolic links * `WIDELINKS` - As above, allow access wide symbolic links
* `WORKGROUP` - As above, set workgroup * `WORKGROUP` - As above, set workgroup
* `USERID` - Set the UID for the samba server * `USERID` - Set the UID for the samba server's default user (smbuser)
* `GROUPID` - Set the GID for the samba server * `GROUPID` - Set the GID for the samba server's default user (smbuser)
* `INCLUDE` - As above, add a smb.conf include * `INCLUDE` - As above, add a smb.conf include
**NOTE**: if you enable nmbd (via `-n` or the `NMBD` environment variable), you **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 \ -v /path/to/directory:/mount \
-d dperson/samba -p -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 * High memory usage by samba. Multiple people have reported high memory usage
that's never freed by the samba processes. Recommended work around below: that's never freed by the samba processes. Recommended work around below: