Comments (4)
@htkoca sorry for the slow reply, I was out of town on vacation.
The -u
flag will create a user on the system, for simple authentication needs.
Because this container is designed to be a simple and easy way to share a directory of files, it skips many more advanced features of samba and AD. All file access takes place as the smbuser
user and group users
. The USERID
and GROUPID
environment variables will be used for the smbuser
and users
user/group in the container.
This prevents most permission issues, also as users created in the container won't be created on the host running docker, there are fewer random IDs to deal with there. If you set USERID
and GROUPID
to a valid user on the docker server, the files will be owned by that user/group.
from samba.
Wait I'm curious: what exactly is the difference between the userid and groupid in -u
and in the environment variables USERID
and GROUPID
?
from samba.
This container is a way to quickly and easily setup a simple share. All files are setup to be owned by one user and group (less to synchronize with the docker host). To set the UID and GID set the USERID
and GROUPID
environment variables. Just set them both to 0
and you should get the results that you want. Hope that helps.
from samba.
It worked! I just thought -e GROUPID=0 -e USERID=0
is equal to -u "root;root;0;0"
from samba.
Related Issues (20)
- issue with exFAT share HOT 1
- Updated file does not reflect to windows clients HOT 1
- "host allowed" option and docker secrets
- Problems changing owner/group in docker compose HOT 1
- Problems with Username/Password on a share HOT 1
- SMBTORTURE compilation issue
- Update to latest Samba version? HOT 4
- Samba libpopt.so.0 errors HOT 1
- Crash on Start HOT 1
- /usr/bin/samba.sh: line 160: $2: unbound variable HOT 2
- What's the purpose of the VOLUMEs in the Dockerfile? HOT 2
- cannot write files bigger than free space on / HOT 1
- mount error(2): No such file or directory
- create samba share with SMBv1 and multiple networks to separate old machine?
- Samba Server exit with HP Printer HOT 1
- Files are being deleted directly instead of being routed to the .deleted folder
- Samba is too new :x:
- Windows Docker Set up Failure
- Even with guest=yes, windows still ask for password HOT 1
- Problem with file permission
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samba.