Mount Samba shares (why doesn't Nautilus work?) and making smb mounts permanent
Last modified on July 24, 2026 • 2 min read • 282 wordsMount Samba sharesApparently it is very easy to connectfrom within Nautilus to Windows computers (or rather to computers running smb services).
sudo mount -t smbfs -o username=michael,password=here_goes_my_password //paula/michael /mnt/smbpaula is the netbios name of the other computer and michael is the name of the share.You can also set the owner of all the files of the mounted file system with the -o uid=owner option:sudo mount -t smbfs -o username=michael,password=here_goes_my_password -o uid=500 //paula/michael /mnt/smbIf you don’t want to type your password, you can save it in a file like this:username=susannepassword=0sdf7band then you can refer to this “credentials” file:sudo mount -t smbfs -o username=susanne,credentials=/home/susanne/.smbpasswd //patolmac217/susanne /mnt/smbIn order to unmount use:sudo umount /mnt/smbThis mostly fails as you are likely to have some open windows/terminals that keep the connection active. Close them and try again. You also might try umount -f.Making smb mounts permanentWhen you mount an SMB share, it will be gone upon system restart. To make it mount automatically during system bootup, you have to create a new entry in the /etc/fstab file. In my case e.g.://paula/michael /mnt/smb smbfs credentials=/home/jeltsch/.smbpasswd 0 0In the .smbpasswd file is my username and my password. Probably not very safe, but who cares? .smbpasswd should be anyway only readable by yourself!