You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configuration for the default share makes it inaccessible from SMB clients.
Context
Hardware: VirtualBox 7.0
YunoHost version: 11.0.11
I have access to my server: Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Using, or trying to install package version/branch: 4.9.5~ynh3
Steps to reproduce
Install samba app. I used the Yunohost admin web UI for that.
Still in the Yunohost admin web UI, create a new user or change the password of an existing user. His username will be referred as <ynh_username> bellow
From a client host (Ubuntu in VirtualBox VM, in my case), ensure you have smbclient installed (e.g. apt install smbclient)
From this client host, enter this command: smbclient -U <ynh_username> //<ynh_server_name_or_ip>/share, then enter the user's password
Expected behavior
smbclient connects to the share by displaying this prompt:
smb: \>
Actual behavior
smbclient displays this error message then exits: tree connect failed: NT_STATUS_UNSUCCESSFUL.
Logs
In Samba logs (/var/log/samba/log.<client_hostname>), there is this kind of lines for each smbclient call:
I think the dfs_samba4 value in the vfs objects parameter is the source of the issue. From what I understood from DFS stuff in Samba, this should only apply to AD DC Samba setups, which is apparently not the case for setup provided with the Samba app for Yunohost.
So I tried removing the dfs_samba4, then I restarted Samba on the server, and smbclient was finally accessing the share!
Describe the bug
The configuration for the default share makes it inaccessible from SMB clients.
Context
Steps to reproduce
<ynh_username>
bellowsmbclient
installed (e.g.apt install smbclient
)smbclient -U <ynh_username> //<ynh_server_name_or_ip>/share
, then enter the user's passwordExpected behavior
smbclient
connects to the share by displaying this prompt:Actual behavior
smbclient
displays this error message then exits:tree connect failed: NT_STATUS_UNSUCCESSFUL
.Logs
In Samba logs (
/var/log/samba/log.<client_hostname>
), there is this kind of lines for eachsmbclient
call:Here is a copy of my
/etc/samba/smb.conf.d/share.conf
file:My understanding
I think the
dfs_samba4
value in thevfs objects
parameter is the source of the issue. From what I understood from DFS stuff in Samba, this should only apply to AD DC Samba setups, which is apparently not the case for setup provided with the Samba app for Yunohost.So I tried removing the
dfs_samba4
, then I restarted Samba on the server, andsmbclient
was finally accessing the share!In conclusion, I don't see why there is the
dfs_samba4
parameter value in the share definition https://github.com/YunoHost-Apps/samba_ynh/blob/master/conf/share-smb.conf.Could you fix it in the Samba app source code, please?
Thanks!
The text was updated successfully, but these errors were encountered: