Mounting SMB shares fails both ways, fstab and systemd

For ages I used to mount SMB shares on my NAS with an simple entry in /etc/fstab: //192.168.2.2/uXXX /home/xxx/mnt/uXXX cifs vers=2.0,credentials=/home/xxx/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 1 And all was fine, in Ubuntu, Debian, EndeavorOS. But with Bazzite, it mounts but gives the well known and yet totally cryptic "This program is not installed setuid root - "user" CIFS mounts not supported." I tried to set up a mount in systemd, but it is either "The directory /home/xxx/mnt/sData is specified as the mount point (second field in /etc/fstab or Where= field in systemd unit file) and is not empty." (but it is empty, I can delete and mkdir, all the same), or "home-xxx-mnt-uXXX.mount: Mount path /home/xxx/mnt/uXXX is not canonical (contains a symlink)." once I add the noempty option. Is there any way around this and make it work like it used to in the good old days?
Solution:
/home is symlinked from /var/home. Try the full path for systemd. For the fstab mount, you probably need to set the right ownership and permissions for the folder and credentials.
Jump to solution
2 Replies
Solution
biebel
biebel•2mo ago
/home is symlinked from /var/home. Try the full path for systemd. For the fstab mount, you probably need to set the right ownership and permissions for the folder and credentials.
🆆hiskey🆃ango🅵oxtrott
Okay, this is weird, because no guide out there mentions this, maybe this is very Bazzite specific? Anyway, it works now, gotta save this somewhere.

Did you find this page helpful?