Git Product home page Git Product logo

Comments (4)

wjiec avatar wjiec commented on August 23, 2024 2

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.

rourke avatar rourke commented on August 23, 2024 2

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.

rourke avatar rourke commented on August 23, 2024

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.

rourke avatar rourke commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.