Closed osias10 closed 4 months ago
seems to me to be a permissions issue - config and everything looks good.
make sure the user service
has read / write permissions on the share and it's files
also check if the folder really is empty - maybe it is
it could be the case that the directory on the host is not mounted - maybe that's the reason
The mount appears to be well placed.
When I create a new folder or a new text document in Windows Explorer, it still comes out as an empty folder in Explorer, but it seems that the file was created normally inside both the host and docker in linux.
It's like I can create a file but I can't see it, is there something I missed?
host system's window_mount folder permission is 777
interessting, especially since you mentioned that you gave it permissions of 777...
please check the permissions of the folders:
/home/wnsguddk1/work/window_mount
on host and if it has contents
/shares/samba_home
inside the container and if it has contents - the same contents
can you create a file from your windows explorer?
it could be the case that there is an issue with your locale / utf symbols - I once had an issue were certain files with sophisticated filenames were only visible on the filesystem but not in the samba share...
another thing you can try is:
change:
volumes:
- /home/wnsguddk1/work/window_mount:/shares/samba_home
to
volumes:
- ./testshare:/shares/samba_home
and give this folder ./testshare
permissions of 777
can you please add how /home/wnsguddk1/work/window_mount
is mounted? seems to me like some special mount, maybe a tunnel from a virtual machine to it's windows host - maybe the fs implementation has troubles supporting certian features...
As you told me, I modified the mount position to ./testshare in docker-compose.yml.
volumes:
- ./testshare:/shares/samba_home
and reconnect smb
testshare permission is 777
when i click new folder button in windows file explorer It still appears as an empty folder in Windows File Explorer, but it is created in Linux Server
in docker: UID 1003 is service(username) in host UID 1003 is wnsguddk1(username)
ps. "/home/wnsguddk1/work/window_mount" is not mounted folder, window_mount is just file name (that path is hdd , xfs filesystem)
interessing can you create a file inisde this testshare using touch testfile; chmod 777 testfile
what kind of linux distribution do you use? maybe some selinux context which keeps samba from accessing the files
Hi When I connect the smb server from Windows, the login is normal, but it says empty folder. And when I create a file or folder, there is no response.
However, if i go inside the docker, i can see the file normally.
this is my docker-compose.yml file
and i connect on winodws file explorer url: \{serverIP}\samba_home id: service pw: passwd
The connection is successful, but it looks like the picture. (i can't see any file and folder) and i can't create folder or file and no error message (Nothing is happening.)
this is my docker log