SMB share does not connect, google and the forum did not help.
TrueNAS-SCALE-22.12.3.3 local ip 10.x.x.x
Server with ubuntu 22 public ip in same vlan with local ip.
There is network connectivity.
I can't mount smb share
smb share has been created, I connect to it from a windows computer, I can edit it.
ACL created a separate user with full rights.
When added to /etc/fstab and mount -a
dmesg
[149782.807095] CIFS: Attempting to mount \\10.x.x.x\share 1
[149784.626126] CIFS: VFS: \\10.x.x.x cifs_put_smb_ses: Session Logoff failure rc=-512
[149784.626160] CIFS: VFS: cifs_mount failed w/return code = -512
The folder where to mount is created
on this server there are active smd share with other servers - they work through fstab, cifs-utils and other installed.
smbclient -NL //10.x.x.x -U=user1%pwd1
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (TrueNAS Server)
share1 Disk
With manual mounting, it is a bit stupid and connects, I see a text file created from windows, but without the right to edit (everything is edited under this user from windows) and create
sudo mount.cifs //10.x.x.x/share1 /mnt/share1--verbose -o rw,credentials=/home/user1/.smbcredstor,uid=root,gid=nas,acl,iocharset=utf8,nofail,_netdev 0 0
Where to dig next?
TrueNAS-SCALE-22.12.3.3 local ip 10.x.x.x
Server with ubuntu 22 public ip in same vlan with local ip.
There is network connectivity.
I can't mount smb share
smb share has been created, I connect to it from a windows computer, I can edit it.
ACL created a separate user with full rights.
When added to /etc/fstab and mount -a
dmesg
[149782.807095] CIFS: Attempting to mount \\10.x.x.x\share 1
[149784.626126] CIFS: VFS: \\10.x.x.x cifs_put_smb_ses: Session Logoff failure rc=-512
[149784.626160] CIFS: VFS: cifs_mount failed w/return code = -512
The folder where to mount is created
on this server there are active smd share with other servers - they work through fstab, cifs-utils and other installed.
smbclient -NL //10.x.x.x -U=user1%pwd1
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (TrueNAS Server)
share1 Disk
With manual mounting, it is a bit stupid and connects, I see a text file created from windows, but without the right to edit (everything is edited under this user from windows) and create
sudo mount.cifs //10.x.x.x/share1 /mnt/share1--verbose -o rw,credentials=/home/user1/.smbcredstor,uid=root,gid=nas,acl,iocharset=utf8,nofail,_netdev 0 0
Where to dig next?