CIFS

From Review or Discard at Will
Revision as of 18:58, 8 March 2022 by Jeffa (talk | contribs) (Added TrueNas video)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CIFS notes

TrueNas Scale

smbstatus

root@debbie:~# smbstatus

Samba version 4.9.5-Debian
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing
----------------------------------------------------------------------------------------------------------------------------------------
27946   jeffa        jeffa        192.168.1.229 (ipv4:192.168.1.229:49822)  SMB3_11           -                    partial(AES-128-CMAC)
27944   jeffa        jeffa        192.168.1.192 (ipv4:192.168.1.192:38282)  SMB3_11           -                    partial(AES-128-CMAC)
3206    jeffa        jeffa        192.168.1.230 (ipv4:192.168.1.230:41070)  SMB3_11           -                    partial(AES-128-CMAC)

Service      pid     Machine       Connected at                     Encryption   Signing
---------------------------------------------------------------------------------------------
jeffa        27946   192.168.1.229 Sat Feb 12 08:20:06 AM 2022 MST  -            -
jeffa        27944   192.168.1.192 Sat Feb 12 08:20:04 AM 2022 MST  -            -
IPC$         27946   192.168.1.229 Sat Feb 12 08:20:06 AM 2022 MST  -            -
IPC$         3206    192.168.1.230 Mon Feb 28 06:24:54 PM 2022 MST  -            -
IPC$         27944   192.168.1.192 Sat Feb 12 08:20:04 AM 2022 MST  -            -
jeffa        3206    192.168.1.230 Mon Feb 28 06:24:54 PM 2022 MST  -            -

No locked files

smbclient

root@debbie:~# smbclient -L tns1  -U  ubatz
WARNING: The "syslog" option is deprecated
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\uwork's password:

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (TrueNAS Server)
        tns1snap        Disk
        work            Disk
Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Failed to connect with SMB1 -- no workgroup available
root@debbie:~#

mount

root@debbie:~# mount -vvvv -t cifs -o rw,username=foo,password=bar //192.168.1.122/work /mnt/tns1/work/