Page 1 of 1

Mounting shared network folder with mount R/W access

Posted: Sat Jun 30, 2018 1:04 am
by scootergarrett
I have a raspberry pi set up sharing a network folder using samba. I can access files via my (Linux) lap top and used to access from other pi's via the mount command. I got the new Pi 3B+ and had to update Jessie, now when I mount the folder I only have read access. I doubt its the pi with the shared folder as other computes can read/ wtite as expected, did the Jessie update change something with mounting network folders and permisions that I need to account for?

Thanks

Re: Mounting shared network folder with mount R/W access

Posted: Sat Jun 30, 2018 6:43 am
by lmarmisa
Maybe the problem is related to the mount command. You could need to define additional options like uid, gid, fmask or dmask. Could you post here your command?.

According to your comments your shared network is composed only of linux computers. Therefore you do not need to use samba. You could use directly the ssh/sftp file transfer protocol and the client sshfs. You do not need to configure anything on the server side in this case.

https://www.raspberrypi.org/documentati ... h/sshfs.md

Code: Select all

mkdir remote #mount point
sshfs pi@piserver:/home/pi remote #mount
fusermount -u remote #umount
I recommend to define RSA ssh keys for achieving remote passwordless access:

https://www.raspberrypi.org/documentati ... ordless.md

Re: Mounting shared network folder with mount R/W access

Posted: Sat Jun 30, 2018 7:13 am
by rpdom
lmarmisa wrote:
Sat Jun 30, 2018 6:43 am
You could use directly the ssh/sftp file transfer protocol and the client sshfs.
I prefer NFS. You only need to configure the server once and then add as many clients as you want.
You do not need to configure anything on the server side in this case.
True, apart from the ssh keys.

Re: Mounting shared network folder with mount R/W access

Posted: Sat Jun 30, 2018 11:12 am
by scootergarrett
The mount command I'm using is:

Code: Select all

sudo mount.cifs //<IP>/public /home/pi/Shared/ -o user=pi,password=<PW>
where <IP> is the IP address of the server pi, and <PW> is the samba password.
In the future I may want to use a windows computer. but for my understanding the sshfs would act just like a networked folder with multiple pies using just a local network connection?

Thanks again

Re: Mounting shared network folder with mount R/W access

Posted: Sat Jun 30, 2018 11:36 am
by epoch1970
There is something going on with CIFS protocol version. Not sure if this is relevant, but you could try adding "vers=1.0" to your options.
viewtopic.php?p=200456#p1290795
viewtopic.php?p=1298913

Re: Mounting shared network folder with mount R/W access

Posted: Sat Jun 30, 2018 12:06 pm
by scootergarrett
Nice. adding 'vers=1.0' worked. Note that after the password there is a comma then no space

Code: Select all

sudo mount.cifs //<IP>/public /home/pi/Shared/ -o username=pi,password=<PW>,vers=1.0
now I need to make sure it works on all older pies

Thanks so much