Comments (6)
Done! Tks a lot for your support ! was just stupid typo!
A\
from samba.
can you fix the docker-compose part, so I can try on my machine
from samba.
Except the passw string, everything is exactly as I have in my docker-compose.yml . I have removed "build: ." line . Now I have container started but no ports mapped. I added then :
ports:
- "137:137/udp" # required to advertise shares (NMBD)
- "138:138/udp" # required to advertise shares (NMBD)
- "139:139/tcp" # default smb port
- "445:445/tcp" # default smb port
and when try to buid I'm getting :
yaml: line 36: did not find expected '-' indicator
Thanks for quick stepping in!
from samba.
I'd suggest removing: hostname: SMB-srv7
with network_mode: host
you already bind everything to your docker host, which already has a hostname
also exposing ports is not nessary
I'd also recommend doing this:
SAMBA_VOLUME_CONFIG_syncro: "[2shareHome64]; path=/shares/64G; valid users = synchro; guest ok = no; read only = no; browseable = yes"
volumes:
# avoid loops when mounting folders to /shares (I'd recommend explicit mapping for each share)
- /2share-64G:/shares/64G
other than that I could not imagine what the problem might be. what's your host? normal linux pc?
from samba.
ahh yeah as the error message said, it didn;t find the docker file, since you didn't clone the whole repo.
which is fine, since it can be pulled from the servers.
I guess it;s working now
and exporting ports is optional with network_mode host
from samba.
Well, the longest time spent for the simplest issue; It is a bullseye on raspberry. Now the container is up(healthy) I can see the mapped drive from inside:
/ # ls -trals /shares/64G/
total 260
0 -rwxr-xr-x 1 root root 0 Nov 6 12:23 this is flash64G.txt
128 drwxr-xr-x 2 root root 131072 Nov 6 17:32 System Volume Information
0 -rwxr-xr-x 1 root root 0 Nov 9 20:10 lll.txt
0 -rwxr-xr-x 1 root root 0 Nov 9 20:16 bb.txt
128 drwxr-xr-x 3 root root 131072 Nov 9 20:16 .
4 drwxr-xr-x 3 root root 4096 Nov 10 09:03 ..
/ # ls -trald /shares/64G/
drwxr-xr-x 3 root root 131072 Nov 9 20:16 /shares/64G/
and from host:
admin@srv-rsp7:/SAMBA-srv/dockerfiles $ ls -trald /2share-64G//SAMBA-srv/dockerfiles $ ls -trals /2share-64G/
drwxr-xr-x 3 root root 131072 Nov 9 22:16 /2share-64G/
admin@srv-rsp7:
total 260
0 -rwxr-xr-x 1 root root 0 Nov 6 14:23 'this is flash64G.txt'
128 drwxr-xr-x 2 root root 131072 Nov 6 19:32 'System Volume Information'
4 drwxr-xr-x 21 root root 4096 Nov 9 21:50 ..
0 -rwxr-xr-x 1 root root 0 Nov 9 22:10 lll.txt
0 -rwxr-xr-x 1 root root 0 Nov 9 22:16 bb.txt
128 drwxr-xr-x 3 root root 131072 Nov 9 22:16 .
but when try to map shared drive on windows , is "Attempting to connect " long time and the clever troubleshooter says :
your computre appears to be correctly configured but the device detected or resource is not responding
Firewall on PC disabled
SAMBA log says that connections are allowd:
Could not open tdb: No such file or directory
[2022/11/10 09:03:56.769403, 3] ../../source3/auth/token_util.c:688(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2022/11/10 09:03:56.772933, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'winreg' registered
[2022/11/10 09:03:56.773005, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'srvsvc' registered
[2022/11/10 09:03:56.773084, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'lsarpc' registered
[2022/11/10 09:03:56.773144, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'samr' registered
[2022/11/10 09:03:56.773223, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'netdfs' registered
[2022/11/10 09:03:56.773259, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'dssetup' registered
[2022/11/10 09:03:56.773289, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'wkssvc' registered
[2022/11/10 09:03:56.773321, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'spoolss' registered
[2022/11/10 09:03:56.773349, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'svcctl' registered
[2022/11/10 09:03:56.773377, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'ntsvcs' registered
[2022/11/10 09:03:56.773405, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'eventlog' registered
[2022/11/10 09:03:56.773439, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'initshutdown' registered
[2022/11/10 09:03:56.773468, 3] ../../source3/rpc_server/rpc_modules.c:64(register_rpc_module)
register_rpc_module: Successfully added RPC module 'mdssvc'
[2022/11/10 09:03:56.773565, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'mdssvc' registered
[2022/11/10 09:03:56.774287, 3] ../../source3/rpc_server/svcctl/srv_svcctl_reg.c:565(svcctl_init_winreg)
Initialise the svcctl registry keys if needed.
[2022/11/10 09:03:56.814045, 3] ../../source3/rpc_server/eventlog/srv_eventlog_reg.c:59(eventlog_init_winreg)
Initialise the eventlog registry keys if needed.
[2022/11/10 09:03:56.819701, 3] ../../source3/printing/queue_process.c:359(start_background_queue)
start_background_queue: Starting background LPQ thread
[2022/11/10 09:03:56.925385, 1] ../../source3/printing/printer_list.c:255(printer_list_get_last_refresh)
Failed to fetch record!
[2022/11/10 09:03:56.925445, 2] ../../source3/smbd/server.c:1364(smbd_parent_loop)
waiting for connections
[2022/11/10 09:05:55.630098, 2] ../../source3/lib/tallocmsg.c:84(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2022/11/10 09:05:55.632509, 3] ../../lib/util/access.c:316(allow_access)
Allowed connection from 192.168.2.59 (192.168.2.59)
from samba.
Related Issues (20)
- adduser not possible if gid = uid HOT 1
- Error loading shared library HOT 3
- No access to shared folder HOT 5
- Read-only shared folders HOT 2
- Question: Which version of Samba (v1/v2/v3/v4) is being used, and can it be changed for best performance? HOT 5
- force user = %U with timemachine HOT 5
- Why does turning on time machine modify my read and write permissions HOT 4
- Samba Server not visible HOT 5
- `disable netbios = yes` disregards `$NETBIOS_DISABLE` HOT 1
- Multiline not working HOT 3
- Cannot use UID and GID of a host user HOT 1
- differnce to dperson/samba HOT 1
- How to set the Time Machine share max size differently for different users HOT 6
- Why I can't create file? HOT 2
- Add configuration to change AVAHI service host name HOT 10
- Not Able to Delete Files HOT 14
- auth error when use compose list format HOT 14
- enable encryption HOT 2
- Can't connect on my share remotely and not discovarable HOT 4
- Scheduled Docker builds failing HOT 3
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.