Samba drive not auto mounting, then when manually mounted no write permissions

I am trying to get a samba drive auto mounted when I login to my computer.

With my current fstab file:

//freenas.local/Audio/ /mnt/freenas1/Audio cifs user=alex,password=topsecret,_netdev,nofail,x-system.automount,x-systemd.mount-timeout=30,x-systemd.after=network-online.target,rw 0 0

this is what it shows in dolphin:

sorry, apparently new users are only allowed one media item and this isn’t the most important media item

then if i run `sudo mount -av` to manually mount the drives I get the following output:

❯ sudo mount -av
[sudo] password for alex:
/boot : already mounted
/ : ignored
/home : already mounted
/root : already mounted
/srv : already mounted
/var/cache : already mounted
/var/tmp : already mounted
/var/log : already mounted
/tmp : already mounted
Host “freenas.local” resolved to the following IP addresses: 192.168.1.136
mount.cifs kernel mount options: ip=192.168.1.136,unc=\\freenas.local\Audio,user=alex,pass=********
/mnt/freenas1/Audio : successfully mounted

Which then results in this output in dolphin. I am not sure why it duplicates them instead of updating the ones that already existed…

Even after manually mounting them I still don’t have write permissions.

/mnt/freenas1/Miscellaneous
❯ touch test.txt
touch: cannot touch ‘test.txt’: Permission denied

I read tons of online articles but nothing seems to work. I thought I was finally going to get it to work with this one but it didn’t.

Any ideas? how can i get my samba drives to auto mount with the correct permissions? I have previously had this working without any issues on POP_OS! using gvfs, but I don’t think that’s an option when using KDE plasma.

If you can provide:

  • the output of mount | grep cifs
  • the content of /etc/fstab (SMB entry)
  • ls -ld /path/to/mountpoint

Someone her might be able to tell if you have incorrect CIFS mount options, an issue with the ownership of the mount point, samba server-side permissions issues or a KDE/Dolphin automount configuration issue. Or something else.

You could try SMB instead of CIFS, or maybe try NFS?

  • output of mount | grep cifs

no output (this seems like an issue…)

  • the content of /etc/fstab (SMB entry)

//freenas.local/Audio/ /mnt/freenas1/Audio cifs user=alex,password=topsecret,_netdev,nofail,x-system.automount,x-systemd.mount-timeout=
30,x-systemd.after=network-online.target,rw 0 0

  • ls -ld /path/to/mountpoint

drwxr**-xr-**x - root 29 May 13:07  /mnt/freenas1/Audio