NAS and KDE, fstab

Hello

I use Manjaro KDE version following many problems with the programs Kdenlive, Digicam, Freecad…with Gnome. I’m repurposing Plasma and I have some curiosities to submit to you.
I have 2 NAS, a synology and a Qnap. I mounted these two NAS via fstab:

#Serveur Syno via smb
//192.168.1.10/Famille/ /home/ServeursMaison/ServFamille cifs _netdev,credentials=/home/pympc/.smbcredentials1,auto,uid=1000,gid=1000,rw,vers=3.0 0 0

# Accès au NAS Qnap par cifs
//192.168.1.17/Multimedia /home/ServeursMaison/ServPhotos cifs _netdev,credentials=/home/pympc/.smbcredentials4,auto,uid=1000,gid=1000,rw,sec=ntlmv2 0 0

On my wife’s PC, running Manjaro Gnome, everything works, the folders open and the contents are displayed. On my PC, only the synology wants to mount the Qnap does not want to know anything.

When I do in console

sudo mount -a                                                                                 ✔ 
[sudo] Mot de passe de pympc : 
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

I checked the smbcredentials4 file and the user and password are the ones that allow me access to the Qnap Nas.
In Dolphin I have these elements:

I admit I don’t really understand what’s going on. Do any of you have an idea?
Thank you in advance

PS: As I speak very little English, I use the Google translator to write to you. I hope this isn’t too far-fetched…

For info I went to look at the logs

24/11/2025 09:52	kernel	CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
24/11/2025 09:52	kernel	CIFS: VFS: \\192.168.1.17 Send error in SessSetup = -13
24/11/2025 09:52	kernel	CIFS: VFS: cifs_mount failed w/return code = -13

…and I’m not any more advanced given my level in IT!

What’s crazy is that on Madam’s Gnome PC it’s OK but on mine in KDE…

i can only offer this tool for checking fstab integrity

# use this to verify changes to fstab before restart
sudo findmnt --verify --verbose

run it on the gnome machine and compare to your kde machine.

@PYM:

In your ‘~/.smbcredentials??’ files, is there white-space around the “=” characters in the parameter definitions?

username=value
password=value
password2=value
domain=value

The original text for the above parameter definitions is in the “mount.cifs” man page.


There’s a 7 year old StackExchange discussion dealing with this point: <how to use a credential file when mounting a samba share using mount command?>

Thanks for these leads. I made several attempts and after a while I gave in. I redid the file with a new name and….oh miraculously everything works. Is it because I copied the smbcredentials file from another PC via a USB stick. Was there a loss or problem during the transfer…I don’t know. But now everything works. On the other hand, I always have a repetition of my paths to the NAS and some have an icon which seems to inform me of a problem…

@PYM:

A useful little Command Line tool is “dos2unix” –

  • Possibly, the original file copied from the USB stick had the line breaks »the newlines« formatted as the DOS/Windows standard of a Carriage Return character (CR) followed by a Line Feed character (LF) »CR/LF« …
  • For UNIX® and Linux, a line break is simply a Line Feed character (LF).

Simply point “dos2unix” to your imported file and, the file’s format will be automagically corrected to that needed by Linux.

Thanks, I think there was a problem with the imported file. It works on my wife’s PC but not mine. dos2unix, I didn’t know, it is now on my PC, ready to use.
Thanks again