-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible permissions problem and home user directory #16
Comments
I've tested this command to escape the
|
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 |
Hi, I think you should try to change the permissions of your folder to
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" |
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. |
I have 2 folders
/data/homer
and/data/home-assistant
. Both the folders and their content are owned by uservictor
and groupvictor
. The permissions for the contents of the data folder isrw-rw-r--
or664
. I want to share the/data
folder, but login with custom credentials. So I have the following docker command:Some odd behaviour I don't understand:
I tried to get both users in the same group, but the container does error out saying the group already exists.
So victor:
1000:100:victor:users:RaNdOmPaSwOrD
and bob:1001:100:bob:users:anotherpassword
- existing group on host filesystem. I also did recursive chown to the/data
folder for this test.How do I also get bob to be able to edit files?
/etc/samba/smb.conf
.When I commented out the
[homes]
share from this file the user directory was gone. Is this something you can change?The text was updated successfully, but these errors were encountered: