Howdy y’all. I’ve got an SMB share on my network that I’ve mounted successfully on other machines on my network with this /etc/fstab entry:
192.168.1.5/shareddrive /mnt/shareddrive cifs rw,vers=3,x-systemd.automount,x-systemd.mount-timeout=10,_netdev,nofail,user,uid=1000,gid=1000,credentials=/etc/samba/credentials/shareddrive 0 0
As you can see, I’ve set UID and GID, which on my other systems (openSUSE and Arch) means my user, having those IDs, has ownership of /mnt/shareddrive. And in fact, if I run sudo mount.cifs 192.168.1.5/shareddrive /mnt/shareddrive -o rw,vers=3,x-systemd.automount,x-systemd.mount-timeout=10,_netdev,nofail,user,uid=1000,gid=1000,credentials=/etc/samba/credentials/shareddrive
, that’s exactly what I get on my Rocky 9.2 system as well. Until I reboot, that is. I’ve had a look at /var/log/messages and dmesg but can’t find a whole lot info here. Assuming I’m looking for the right thing.
Does anybody have an idea what I might be doing wrong here? Thanks so much!