Docker run -it
--name samba_docker
- p 139:139:139
-p 445:445
-v /home/sharees/shareA:/home/shares/shareA
-d dperson/s\amba
-w "WORKGROUP"
-u "userA; 23456789"
-s "shareA;/home/shares/shareA;yes;no;no;userA;user
The last row is separated by the name of the shared folder in:
respectively; the path shared in the samba container; the shared name is visible to all working group users; not only read (i.e. writeable); Allow guest user;assign shared ownership user;assign shared superuser;assign write permissions to users;
For permissions on files and folders created in the shared folder, pass:
docker exec -it 4ae45cd4f49/bin/bash
modify the samba configuration document /etc/samba/s in the container. It is enough.
docker run -it --name samba_docker -p 139:139 -p 445:445-v /home/shares/share:/home/shares --w -d dperson/samba -w "WORKGROUP" -u "user;pwd" -s "share;/home/shares/share;yes;no;no;user;user"