smb mounts via fstab or automount?
Last modified on July 24, 2026 • 1 min read • 199 wordsI have many computers I need to connect to from my Linux box.
//paula/michael /media/smbmounts smbfs noauto,user,credentials=/home/jeltsch/.smbpasswd1 0 0This works if I have the entry mounted at system startup (without the “noauto” entry). If the “noauto” entry is present, the smb share is not mounted at system startup, but must explicitely be mounted by the following command:mount /media/smbmountsBecause of the “user” option in the fstab, every regular user should be able to do this. Not so! First I had to enable the “suid” for the smbmnt command (it appeared to be in /usr/bin/smbmnt, but was linked to a link that linked to /usr/lib/samba/classic/smbmnt:chmod +s /usr/lib/samba/classic/smbmntThen I found contradicting information whether the mountpoint (in my case /media/smbmounts) has to owned by the mounting user or not. To be safe it did:chown jeltsch /media/smbmountsStill I got an error which I couldn’t figure out and I decided to use automounts.