Samba fileshare error

I was using my old laptop as a NAS and print server using Samba. It worked fine before and I can access the share just fine but after an update my Samba share doesn’t work anymore and keep giving this error “net usershare add: failed to add share nas. Error was Operation not permitted”.

Here is my smb.conf if it will help

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).

[global]
        workgroup = SAMBA
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

        # Install samba-usershares package for support
        include = /etc/samba/usershares.conf

        usershare owner only = false

[homes]
        comment = Home Directories
        valid users = sanc
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = Yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        # printadmin is a local group
        write list = printadmin root
        force group = printadmin
        create mask = 0664
        directory mask = 0775

[NAS]
        path = /mnt/NAS
        browseable = yes
        writable = yes
        guest ok = yes
        read only = No
        valid users = sanc

Check the system journal on the server for errors from smb service.
If the smb.conf has issues that might explain the failures.

Is this the one you’re asking?

sanc@fedora \~ \[SIGINT|SIGINT\]> journalctl -a --this-boot | grep smb
Jan 31 20:14:20 fedora kernel: piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
Jan 31 20:14:20 fedora kernel: piix4_smbus 0000:00:14.0: Using register 0x02 for SMBus port selection
Jan 31 20:14:20 fedora kernel: piix4_smbus 0000:00:14.0: Auxiliary SMBus Host Controller at 0xb20
Jan 31 20:26:06 fedora dolphin\[2963\]: “net usershare add: cannot convert name "Everyone" to a SID. The transport-connection attempt was refused by the remote system.. Maybe smbd is not running.\\n”
Jan 31 20:26:22 fedora sudo\[6414\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl status smb
Jan 31 20:26:28 fedora sudo\[6461\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl start smb
Jan 31 20:26:28 fedora systemd\[1\]: Starting smb.service - Samba SMB Daemon…
Jan 31 20:26:28 fedora systemd\[1\]: Started smb.service - Samba SMB Daemon.
Jan 31 20:26:28 fedora audit\[1\]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:33:11 fedora sudo\[8131\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl restart smb
Jan 31 20:33:12 fedora systemd\[1\]: Stopping smb.service - Samba SMB Daemon…
Jan 31 20:33:12 fedora systemd\[1\]: smb.service: Deactivated successfully.
Jan 31 20:33:12 fedora systemd\[1\]: Stopped smb.service - Samba SMB Daemon.
Jan 31 20:33:12 fedora audit\[1\]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:33:12 fedora systemd\[1\]: Starting smb.service - Samba SMB Daemon…
Jan 31 20:33:12 fedora systemd\[1\]: Started smb.service - Samba SMB Daemon.
Jan 31 20:33:12 fedora audit\[1\]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:38:46 fedora sudo\[9335\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl restart smb
Jan 31 20:38:46 fedora systemd\[1\]: Stopping smb.service - Samba SMB Daemon…
Jan 31 20:38:46 fedora systemd\[1\]: smb.service: Deactivated successfully.
Jan 31 20:38:46 fedora systemd\[1\]: Stopped smb.service - Samba SMB Daemon.
Jan 31 20:38:46 fedora audit\[1\]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:38:46 fedora systemd\[1\]: smb.service: Consumed 1.977s CPU time, 40.4M memory peak.
Jan 31 20:38:46 fedora systemd\[1\]: Starting smb.service - Samba SMB Daemon…
Jan 31 20:38:46 fedora systemd\[1\]: Started smb.service - Samba SMB Daemon.
Jan 31 20:38:46 fedora audit\[1\]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:39:50 fedora sudo\[9894\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl restart smb
Jan 31 20:39:50 fedora systemd\[1\]: Stopping smb.service - Samba SMB Daemon…
Jan 31 20:39:50 fedora systemd\[1\]: smb.service: Deactivated successfully.
Jan 31 20:39:50 fedora systemd\[1\]: Stopped smb.service - Samba SMB Daemon.
Jan 31 20:39:50 fedora audit\[1\]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:39:50 fedora systemd\[1\]: Starting smb.service - Samba SMB Daemon…
Jan 31 20:39:50 fedora systemd\[1\]: Started smb.service - Samba SMB Daemon.
Jan 31 20:39:50 fedora audit\[1\]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:42:25 fedora sudo\[10780\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl restart smb
Jan 31 20:42:26 fedora systemd\[1\]: Stopping smb.service - Samba SMB Daemon…
Jan 31 20:42:26 fedora systemd\[1\]: smb.service: Deactivated successfully.
Jan 31 20:42:26 fedora systemd\[1\]: Stopped smb.service - Samba SMB Daemon.
Jan 31 20:42:26 fedora audit\[1\]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:42:26 fedora systemd\[1\]: Starting smb.service - Samba SMB Daemon…
Jan 31 20:42:26 fedora systemd\[1\]: Started smb.service - Samba SMB Daemon.
Jan 31 20:42:26 fedora audit\[1\]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:43:08 fedora sudo\[10863\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl status smb
Jan 31 20:43:45 fedora sudo\[11028\]:     sanc : TTY=pts/2 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/systemctl restart smb
Jan 31 20:43:45 fedora systemd\[1\]: Stopping smb.service - Samba SMB Daemon…
Jan 31 20:43:45 fedora systemd\[1\]: smb.service: Deactivated successfully.
Jan 31 20:43:45 fedora systemd\[1\]: Stopped smb.service - Samba SMB Daemon.
Jan 31 20:43:45 fedora audit\[1\]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 31 20:43:45 fedora systemd\[1\]: Starting smb.service - Samba SMB Daemon…
Jan 31 20:43:45 fedora systemd\[1\]: Started smb.service - Samba SMB Daemon.
Jan 31 20:43:45 fedora audit\[1\]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=‘unit=smb comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’

If the smb.conf has issues that might explain the failures.

/usr/bin/testparm will test the validity of smb.conf.

HTHAL

Are you mountiing from Windows?
Which version?

How are you mounting?
Can you use the net use command?

This is what it output when I use testparm.

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

I also figured out that when I use the command sudo net usershare list it still remembers the my old share

sanc@fedora ~> sudo net usershare list
[sudo] password for sanc:
nas
Steam Games

but when I don’t use sudo it outputs nothing

and I can share folders from my main drive too but not folders from my second drive that I actually use as NAS

Update: I noticed that the NAS fileshare is actually still accessible from Windows but I just can’t seem to edit the share on Linux using GUI and have to use sudo and edit the share using terminal. The shares I have won’t show up in info center as well

Sorry I don’t really understand what do you mean by mounting from Windows but I do map the NAS on my Windows using the “Map network drive” option.

I mount the second drive using the /etc/fstab method. The one where I just make a directory named NAS on the /mnt/ directory and then edit my /etc/fstab file by adding a new line containing UUID=cd2de557-dad3-4be4-a9c1-f85873a67c38 /mnt/NAS btrfs defaults,noatime 0 0

The net use command js gives error

sanc@fedora ~> net use
Invalid command: net use
Usage:
net rpc             Run functions using RPC transport
net rap             Run functions using RAP transport
net ads             Run functions using ADS transport
net file            Functions on remote opened files
net share           Functions on shares
net session         Manage sessions
net server          List servers in workgroup
net domain          List domains/workgroups on network
net printq          Modify printer queue
net user            Manage users
net group           Manage groups
net groupmap        Manage group mappings
net sam             Functions on the SAM database
net validate        Validate username and password
net groupmember     Modify group memberships
net admin           Execute remote command on a remote OS/2 server
net service         List/modify running services
net password        Change user password on target server
net primarytrust    Run functions related to the primary workstation trust.
net changetrustpw   Change the trust password
net changesecretpw  Change the secret password
net setauthuser     Set the winbind auth user
net getauthuser     Get the winbind auth user settings
net time            Show/set time
net lookup          Look up host names/IP addresses
net g_lock          Manipulate the global lock table
net join            Join a domain/AD
net offlinejoin     Perform offline domain join
net dom             Join/unjoin (remote) machines to/from a domain/AD
net cache           Operate on the cache tdb file
net getlocalsid     Get the SID for the local domain
net setlocalsid     Set the SID for the local domain
net setdomainsid    Set domain SID on member servers
net getdomainsid    Get domain SID on member servers
net maxrid          Display the maximum RID currently used
net idmap           IDmap functions
net status          Display server status
net usershare       Manage user-modifiable shares
net usersidlist     Display list of all users with SID
net conf            Manage Samba registry based configuration
net registry        Manage the Samba registry
net eventlog        Process Win32 *.evt eventlog files
net printing        Process tdb printer files
net serverid        Manage the serverid tdb
net notify          notifyd client code
net tdb             Show information from tdb records
net vfs             Filesystem operation through the VFS stack
net witness         Manage witness registrations
net help            Print usage information

I already tried to disable SELinux and use net usershare add again but it still doesn’t work and gives the same error

I am not sure if you cannot map on windows or mount on Fedora.
What does not work and on what system?

FYI net use is the Windows command line way to map (or mount) a share.

Does the user on Fedora that yo use to login the share from Windows have access to the files on the /mnt/NAS?

Oh sorry I don’t really use Windows terminal but to answer your question yes net use does work and I can indeed map the share from Windows. But the share just won’t show up in Info Center in Fedora which is why I tried to add the share again using net usershare add but it ended up giving the error “net usershare add: failed to add share nas. Error was Operation not permitted”. But I’ve noticed that it only happens when I’m trying to share a folder on my second drive or the drive I’m using as the NAS. The drive is mounted fine tho and I can access it just fine from Dolphin or terminal on /mnt/NAS so yeah the user on Fedora that I use to login the share have access to files on the /mnt/NAS. .

sanc@fedora /mnt> ls -l
total 16
drwxrwxrwx. 1 sanc sanc 66 Jan 31 20:37 NAS/

What are the permissions and ownership of the files in /etc/NAS?

Did you mean /etc/fstab?
If so then

sanc@fedora /etc> ls -ld ./fstab
-rw-r--r--. 1 root root 816 Jan 24 13:57 ./fstab

No - typo - @barryascott meant the ownership of the files in /mnt/NAS/

1 Like

It’s the same as the permission and ownership of the NAS folder then.

You didn’t include the “dump of your service definitions” which was the important part.

“Operation not permitted” generally implies a permissions problem.

All that said, you haven’t provided enough information to identify what the issue might be.

How, exactly, can you reproduce this problem? Which computer (Is it a Windows system, a Linux system, the Linux system used as a NAS?) is unable to access this share?

Please also provide the following:

output of ls -lRa /mnt/nas

Attempt a connection to the share with:

smbclient //server/sharename -d5 -U <userid you normally used to access the share>

Enter your password when prompted and, if you successfully log in, type dir, then use the get command to retrieve a file.

I understand if you wish to keep the contents of your NAS private. And the name/content doesn’t really matter for this exercise. Rather, want to know everything else about the files and folders in your share (permissions. ownership. directory structure, etc.)

Please post the output of the smbclient commands as well (the command line I provided enables debugging so lots of additional information should be provided. Again, the names of the files/folders aren’t important, but all the rest of the information is.

The dump of my service definition just contains the content of my smb.conf. I am pretty sure it is a permission issue since I can share folders on my main drive(the drive I use for Fedora) just fine. Issue only happens when I try to share a folder located on my second drive or my /mnt/nas

You can reproduce the problem by using Fedora and have a second drive that you mounted using /etc/fstab method then try to share it using net usershare add nas /mnt/nas.

This is the output of ls -lRa

sanc@fedora ~> ls -lRa /mnt/NAS
/mnt/NAS:
total 16
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ./
drwxr-xr-x. 1 root root  6 Jan 24 13:52 ../
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 Assets/
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 Audio/
drwxrwxrwx. 1 sanc sanc 12 Jan 24 16:53 Pictures/
drwxrwxrwx. 1 sanc sanc  0 Jan 14 17:59 Projects/
drwxrwxrwx. 1 sanc sanc 18 Jan 24 16:52 Videos/

/mnt/NAS/Assets:
total 16
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 ./
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ../

/mnt/NAS/Audio:
total 16
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 ./
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ../

/mnt/NAS/Pictures:
total 16
drwxrwxrwx. 1 sanc sanc  12 Jan 24 16:53 ./
drwxr-xr-x. 1 sanc sanc  66 Feb  2 00:21 ../
drwxrwxrwx. 1 sanc sanc 872 Jan 24 16:53 NONAND/

/mnt/NAS/Pictures/NONAND:
total 11536
drwxrwxrwx. 1 sanc sanc     872 Jan 24 16:53  ./
drwxrwxrwx. 1 sanc sanc      12 Jan 24 16:53  ../
-rwxrwxrwx. 1 sanc sanc  267201 Aug  5 20:30  20250805203031_1.jpg*
-rwxrwxrwx. 1 sanc sanc  365073 Aug  5 20:30  20250805203043_1.jpg*
-rwxrwxrwx. 1 sanc sanc  280044 Aug  5 20:30  20250805203059_1.jpg*
-rwxrwxrwx. 1 sanc sanc  471402 Aug  5 20:31  20250805203113_1.jpg*
-rwxrwxrwx. 1 sanc sanc  428934 Aug  5 20:31  20250805203116_1.jpg*
-rwxrwxrwx. 1 sanc sanc  420640 Jan 24 12:34  3942480_10.jpg*
-rwxrwxrwx. 1 sanc sanc  424631 Jan 24 16:50  3942480_13.jpg*
-rwxrwxrwx. 1 sanc sanc  699928 Jan 24 14:13  3942480_1.jpg*
-rwxrwxrwx. 1 sanc sanc  389547 Jan 23 14:22  3942480_3.jpg*
-rwxrwxrwx. 1 sanc sanc  395887 Jan 19 22:37  3942480_8.jpg*
-rwxrwxrwx. 1 sanc sanc  477178 Jan 24 11:57  3942480_9.jpg*
-rwxrwxrwx. 1 sanc sanc  387360 Jan 24 14:17  3942480.jpg*
-rwxrwxrwx. 1 sanc sanc  583144 Jan 24 14:20  3942480_screenshots_20260119080815_1.jpg*
-rwxrwxrwx. 1 sanc sanc  370785 Jan 24 14:18  3942480_screenshots_20260119200504_1.jpg*
-rwxrwxrwx. 1 sanc sanc  464208 Jan 24 14:19  3942480_screenshots_20260119200651_1.jpg*
-rwxrwxrwx. 1 sanc sanc  555012 Jan 24 14:20  3942480_screenshots_20260119214155_1.jpg*
-rwxrwxrwx. 1 sanc sanc  237080 Jan 24 14:20  3942480_screenshots_20260119220732_1.jpg*
-rwxrwxrwx. 1 sanc sanc 4245209 Dec 22 17:11  jirai-kei.png*
-rwxrwxrwx. 1 sanc sanc  310312 Jul 28  2025 'The existenceN of you AND me.jpg'*

/mnt/NAS/Projects:
total 16
drwxrwxrwx. 1 sanc sanc  0 Jan 14 17:59 ./
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ../

/mnt/NAS/Videos:
total 16
drwxrwxrwx. 1 sanc sanc  18 Jan 24 16:52 ./
drwxr-xr-x. 1 sanc sanc  66 Feb  2 00:21 ../
drwxrwxrwx. 1 sanc sanc 236 Feb  2 00:21 Wallpaper/

/mnt/NAS/Videos/Wallpaper:
total 1211344
drwxrwxrwx. 1 sanc sanc       236 Feb  2 00:21  ./
drwxrwxrwx. 1 sanc sanc        18 Jan 24 16:52  ../
-rwxrwxrwx. 1 sanc sanc  68961359 Aug 31 12:32 'Just Lilith.mov'*
-rwxr--r--. 1 sanc sanc 617790692 Feb  1 01:04 'new lilith title animation with music.mp4'*
-rwxr--r--. 1 sanc sanc 498989360 Feb  2 00:20  Output.mp4*
-rwxrwxrwx. 1 sanc sanc  54668023 Aug  6 00:35 'The NOexistenceN of you AND me - Concert Song JP.mp4'*

and this is the output of smbclient //server/sharename -d5 -U <userid you normally used to access the share>

sanc@fedora ~> ls -lRa /mnt/NAS
/mnt/NAS:
total 16
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ./
drwxr-xr-x. 1 root root  6 Jan 24 13:52 ../
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 Assets/
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 Audio/
drwxrwxrwx. 1 sanc sanc 12 Jan 24 16:53 Pictures/
drwxrwxrwx. 1 sanc sanc  0 Jan 14 17:59 Projects/
drwxrwxrwx. 1 sanc sanc 18 Jan 24 16:52 Videos/

/mnt/NAS/Assets:
total 16
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 ./
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ../

/mnt/NAS/Audio:
total 16
drwxrwxrwx. 1 sanc sanc  0 Jan 14 18:00 ./
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ../

/mnt/NAS/Pictures:
total 16
drwxrwxrwx. 1 sanc sanc  12 Jan 24 16:53 ./
drwxr-xr-x. 1 sanc sanc  66 Feb  2 00:21 ../
drwxrwxrwx. 1 sanc sanc 872 Jan 24 16:53 NONAND/

/mnt/NAS/Pictures/NONAND:
total 11536
drwxrwxrwx. 1 sanc sanc     872 Jan 24 16:53  ./
drwxrwxrwx. 1 sanc sanc      12 Jan 24 16:53  ../
-rwxrwxrwx. 1 sanc sanc  267201 Aug  5 20:30  20250805203031_1.jpg*
-rwxrwxrwx. 1 sanc sanc  365073 Aug  5 20:30  20250805203043_1.jpg*
-rwxrwxrwx. 1 sanc sanc  280044 Aug  5 20:30  20250805203059_1.jpg*
-rwxrwxrwx. 1 sanc sanc  471402 Aug  5 20:31  20250805203113_1.jpg*
-rwxrwxrwx. 1 sanc sanc  428934 Aug  5 20:31  20250805203116_1.jpg*
-rwxrwxrwx. 1 sanc sanc  420640 Jan 24 12:34  3942480_10.jpg*
-rwxrwxrwx. 1 sanc sanc  424631 Jan 24 16:50  3942480_13.jpg*
-rwxrwxrwx. 1 sanc sanc  699928 Jan 24 14:13  3942480_1.jpg*
-rwxrwxrwx. 1 sanc sanc  389547 Jan 23 14:22  3942480_3.jpg*
-rwxrwxrwx. 1 sanc sanc  395887 Jan 19 22:37  3942480_8.jpg*
-rwxrwxrwx. 1 sanc sanc  477178 Jan 24 11:57  3942480_9.jpg*
-rwxrwxrwx. 1 sanc sanc  387360 Jan 24 14:17  3942480.jpg*
-rwxrwxrwx. 1 sanc sanc  583144 Jan 24 14:20  3942480_screenshots_20260119080815_1.jpg*
-rwxrwxrwx. 1 sanc sanc  370785 Jan 24 14:18  3942480_screenshots_20260119200504_1.jpg*
-rwxrwxrwx. 1 sanc sanc  464208 Jan 24 14:19  3942480_screenshots_20260119200651_1.jpg*
-rwxrwxrwx. 1 sanc sanc  555012 Jan 24 14:20  3942480_screenshots_20260119214155_1.jpg*
-rwxrwxrwx. 1 sanc sanc  237080 Jan 24 14:20  3942480_screenshots_20260119220732_1.jpg*
-rwxrwxrwx. 1 sanc sanc 4245209 Dec 22 17:11  jirai-kei.png*
-rwxrwxrwx. 1 sanc sanc  310312 Jul 28  2025 'The existenceN of you AND me.jpg'*

/mnt/NAS/Projects:
total 16
drwxrwxrwx. 1 sanc sanc  0 Jan 14 17:59 ./
drwxr-xr-x. 1 sanc sanc 66 Feb  2 00:21 ../

/mnt/NAS/Videos:
total 16
drwxrwxrwx. 1 sanc sanc  18 Jan 24 16:52 ./
drwxr-xr-x. 1 sanc sanc  66 Feb  2 00:21 ../
drwxrwxrwx. 1 sanc sanc 236 Feb  2 00:21 Wallpaper/

/mnt/NAS/Videos/Wallpaper:
total 1211344
drwxrwxrwx. 1 sanc sanc       236 Feb  2 00:21  ./
drwxrwxrwx. 1 sanc sanc        18 Jan 24 16:52  ../
-rwxrwxrwx. 1 sanc sanc  68961359 Aug 31 12:32 'Just Lilith.mov'*
-rwxr--r--. 1 sanc sanc 617790692 Feb  1 01:04 'new lilith title animation with music.mp4'*
-rwxr--r--. 1 sanc sanc 498989360 Feb  2 00:20  Output.mp4*
-rwxrwxrwx. 1 sanc sanc  54668023 Aug  6 00:35 'The NOexistenceN of you AND me - Concert Song JP.mp4'*

That is not the output of the smbclient command…

Oh wait sorry mb

Here you go

sanc@fedora ~> smbclient //192.168.1.18/nas -d5 -U sanc
INFO: Current debug levels:
  all: 5
  tdb: 5
  printdrivers: 5
  lanman: 5
  smb: 5
  rpc_parse: 5
  rpc_srv: 5
  rpc_cli: 5
  passdb: 5
  sam: 5
  auth: 5
  winbind: 5
  vfs: 5
  idmap: 5
  quota: 5
  acls: 5
  locking: 5
  msdfs: 5
  dmapi: 5
  registry: 5
  scavenger: 5
  dns: 5
  ldb: 5
  tevent: 5
  auth_audit: 5
  auth_json_audit: 5
  kerberos: 5
  drs_repl: 5
  smb2: 5
  smb2_credits: 5
  dsdb_audit: 5
  dsdb_json_audit: 5
  dsdb_password_audit: 5
  dsdb_password_json_audit: 5
  dsdb_transaction_audit: 5
  dsdb_transaction_json_audit: 5
  dsdb_group_audit: 5
  dsdb_group_json_audit: 5
  ldapsrv: 5
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 5
  tdb: 5
  printdrivers: 5
  lanman: 5
  smb: 5
  rpc_parse: 5
  rpc_srv: 5
  rpc_cli: 5
  passdb: 5
  sam: 5
  auth: 5
  winbind: 5
  vfs: 5
  idmap: 5
  quota: 5
  acls: 5
  locking: 5
  msdfs: 5
  dmapi: 5
  registry: 5
  scavenger: 5
  dns: 5
  ldb: 5
  tevent: 5
  auth_audit: 5
  auth_json_audit: 5
  kerberos: 5
  drs_repl: 5
  smb2: 5
  smb2_credits: 5
  dsdb_audit: 5
  dsdb_json_audit: 5
  dsdb_password_audit: 5
  dsdb_password_json_audit: 5
  dsdb_transaction_audit: 5
  dsdb_transaction_json_audit: 5
  dsdb_group_audit: 5
  dsdb_group_json_audit: 5
  ldapsrv: 5
Processing section "[global]"
doing parameter workgroup = SAMBA
doing parameter security = user
doing parameter passdb backend = tdbsam
doing parameter printing = cups
doing parameter printcap name = cups
doing parameter load printers = yes
doing parameter cups options = raw
doing parameter include = /etc/samba/usershares.conf
Processing section "[global]"
doing parameter usershare max shares = 100
doing parameter usershare allow guests = yes
doing parameter usershare allow guests = yes
doing parameter usershare max shares = 100
doing parameter usershare owner only = false
pm_process() returned Yes
added interface wlp2s0 ip=192.168.1.18 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.23.5).
Connecting to 192.168.1.18 at port 445
socket options: SO_KEEPALIVE=0, SO_REUSEADDR=0, SO_BROADCAST=0, TCP_NODELAY=1, TCP_KEEPCNT=9, TCP_KEEPIDLE=7200, TCP_KEEPINTVL=75, IPTOS_LOWDELAY=0, IPTOS_THROUGHPUT=0, SO_REUSEPORT=0, SO_SNDBUF=2626560, SO_RCVBUF=131072, SO_SNDLOWAT=1, SO_RCVLOWAT=1, SO_SNDTIMEO=0, SO_RCVTIMEO=0, TCP_QUICKACK=1, TCP_DEFER_ACCEPT=0, TCP_USER_TIMEOUT=0
 session request ok
 negotiated dialect[SMB3_11] against server[192.168.1.18]
cli_session_setup_spnego_send: Connect to 192.168.1.18 as sanc@SAMBA using SPNEGO
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'ncalrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
Starting GENSEC mechanism spnego
Starting GENSEC submechanism gse_krb5
gensec_gse_client_start: Not using kerberos to cifs/192.168.1.18 as SAMBA\sanc: NT_STATUS_INVALID_PARAMETER
Failed to start GENSEC client mech gse_krb5: NT_STATUS_INVALID_PARAMETER
Starting GENSEC submechanism ntlmssp
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_TARGET_TYPE_SERVER
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_TARGET_INFO
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
Password for [SAMBA\sanc]:
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
 session setup ok
signed SMB2 message (sign_algo_id=2)
signed SMB2 message (sign_algo_id=2)
 tconx ok
Try "help" to get a list of possible commands.
smb: \> dir
dos_clean_name [\*]
unix_clean_name [\*]
  .                                   D        0  Mon Feb  2 00:21:17 2026
  ..                                  D        0  Mon Feb  2 00:21:17 2026
  Videos                              D        0  Sat Jan 24 16:52:24 2026
  Projects                            D        0  Wed Jan 14 17:59:53 2026
  Pictures                            D        0  Sat Jan 24 16:53:11 2026
  Audio                               D        0  Wed Jan 14 18:00:13 2026
  Assets                              D        0  Wed Jan 14 18:00:17 2026

                234429440 blocks of size 1024. 231092000 blocks available
Total bytes listed: 0
smb: \> get
get <filename> [localname]
smb: \> cd ./Videos/
dos_clean_name [\.\Videos\]
unix_clean_name [\Videos\]
dos_clean_name [\Videos\\]
unix_clean_name [\Videos\]
smb: \Videos\> ls
dos_clean_name [\Videos\*]
unix_clean_name [\Videos\*]
  .                                   D        0  Sat Jan 24 16:52:24 2026
  ..                                  D        0  Mon Feb  2 00:21:17 2026
  Wallpaper                           D        0  Mon Feb  2 00:21:22 2026

                234429440 blocks of size 1024. 231092000 blocks available
Total bytes listed: 0
smb: \Videos\> cd Wallpaper
dos_clean_name [\Videos\Wallpaper\]
unix_clean_name [\Videos\Wallpaper\]
dos_clean_name [\Videos\Wallpaper\\]
unix_clean_name [\Videos\Wallpaper\]
smb: \Videos\Wallpaper\> ls
dos_clean_name [\Videos\Wallpaper\*]
unix_clean_name [\Videos\Wallpaper\*]
  .                                   D        0  Mon Feb  2 00:21:22 2026
  ..                                  D        0  Sat Jan 24 16:52:24 2026
  Just Lilith.mov                     A 68961359  Sun Aug 31 12:32:24 2025
  The NOexistenceN of you AND me - Concert Song JP.mp4      A 54668023  Wed Aug  6 00:35:45 2025
  new lilith title animation with music.mp4      A 617790692  Sun Feb  1 01:04:56 2026
  Output.mp4                          A 498989360  Mon Feb  2 00:20:06 2026

                234429440 blocks of size 1024. 231092000 blocks available
Total bytes listed: 1240409434
smb: \Videos\Wallpaper\> get Output.mp4 ~
dos_clean_name [\Videos\Wallpaper\Output.mp4]
unix_clean_name [\Videos\Wallpaper\Output.mp4]
getting file \Videos\Wallpaper\Output.mp4 of size 498989360 as ~ (334221.0 KiloBytes/sec) (average 334221.1 KiloBytes/sec)
smb: \Videos\Wallpaper\> 

Thanks, which version of Windows? 10? 11?

Windows 11

Oh I’m losing track it’s mounting the SMB share on Fedora that is failing.