Mounting samba shares

2 risposte [Ultimo contenuto]
Avron

I am a translator!

Offline
Iscritto: 08/18/2020

The option in caja (the file manager of MATE) does not make the files available in a terminal. I also remember that when I was trying to edit some file from their icon in caja, it did not work.

My previous solution was to indicate them in /etc/fstab like this:
//Computer/Share_name /media/username/Share_name cifs noauto,user,rw,username=admin 0 2

I had put the "noauto" option to avoid, when I use a laptop, that it always tries to mount the share even when I am not at home. Then, I was running
$ mount /media/username/Share_name
and I had to enter my password. I can't remember now but I have that there was a way to put credentials for the share in a file, so that I don't need to enter my password.

I came across https://michlstechblog.info/blog/linux-automount-windows-shares/ that suggests an alternative method. I tried it, it works. I have created a directory /media/share (rather than /media/cifs). In a terminal, if I do
$ cd /media/share
$ ls
$ cd Share_name
$ ls
Share_name
$

When the share is not mounted yet, in caja, I see "share" under device and if I click on it, "Share_name" appears.

Does anyone know of an alternative method that one can configure with a graphical interface only?

Avron

I am a translator!

Offline
Iscritto: 08/18/2020

Sorry, I made a mistake. What I see is
$ cd /media/share
$ ls
$ cd Share_name
$ ls
file1 file2
$

iShareFreedom
Online
Iscritto: 12/20/2021

Since Samba doesn’t use the system account password, you need to set up a Samba password for our user account:

sudo smbpasswd -a avron

then would ask you your account or a new one, and must work, that work for me.

Maybe add something like this to Trisquel documentation would help: https://ubuntu.com/tutorials/install-and-configure-samba#4-setting-up-user-accounts-and-connecting-to-share