Comments (4)
Hi, I think you should try to change the permissions of your folder to rwxrwx---
(i.e. 770
)
For directories, execute permission allows you to enter the directory (i.e., cd into it), and to access any of its files.
I used the following command to simulate that your scenario is writable to a file
$ ls -alh .
drwxr-xr-x 3 root root 4.0K Dec 2 21:41 .
drwx------ 11 root root 4.0K Dec 2 22:40 ..
drwxrwx--- 4 jayson jayson 4.0K Dec 2 21:41 data
$ id -u jayson
1000
$ docker run -d -p 139:139 -p 445:445 \
-e TZ=Europe/Paris \
-v `pwd`/data:/data \
elswork/samba:3.2.7 \
-u "1000:1000:victor:victor:nice" \
-u "1001:1000:bob:victor:bobpwd" \
-s "Config:/data:rw:victor,bob"
from samba.
Ah yes, that should be a solutiuon. I'm not able to test it on my own setup since I started using crazy-max/docker-samba. But I assume this will work. Thanks.
from samba.
I've tested this command to escape the homes
share and it seems to do the trick:
sed -i '/\[homes\]/,/writable/ s/^/;/' /etc/samba/smb.conf
from samba.
Regarding the permissions issue, when I set the group owner of the files to users (GID 100) on the host filesystem and manually add my user bob
to this group within the container with groupadd bob users
, bob can also edit the files. So how would I be able to do this with the way the container works at the moment?
from samba.
Related Issues (20)
- how can it listen 139 at the same time HOT 1
- Connecting samba docker container to Amzaon EFS volume HOT 1
- Hub Docker date problem on Raspberry pi 4 HOT 1
- Version 3.2.8: Invalid option -FS: unknown option HOT 3
- Error after restarting Docker container
- Vulnerabilities in Docker image elswork/samba:3.2.8 HOT 1
- 3.2.9 version tag of samba container goes into a restart loop
- Shares are not mounted as 'read-only', 'ro' works as 'rw' HOT 1
- fix: users(ro) can write to read-only configured share HOT 2
- Not accessible
- Update Samba 4.16 HOT 1
- When using rootless Docker, the file owner is a non-existing user HOT 1
- network speed this image.
- how can everyone get access without inputing account and password?
- Remove password from logs
- Follow symbolic links
- one share, multiple user but different access right?
- Update dependencies in Docker image HOT 1
- Using the smb.conf file HOT 1
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.