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
- scootergarrett
- Posts: 81
- Joined: Sat Apr 19, 2014 2:36 pm
Re: Mounting shared network folder with mount R/W access
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
I recommend to define RSA ssh keys for achieving remote passwordless access:
https://www.raspberrypi.org/documentati ... ordless.md
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
https://www.raspberrypi.org/documentati ... ordless.md
Re: Mounting shared network folder with mount R/W access
I prefer NFS. You only need to configure the server once and then add as many clients as you want.
True, apart from the ssh keys.You do not need to configure anything on the server side in this case.
- scootergarrett
- Posts: 81
- Joined: Sat Apr 19, 2014 2:36 pm
Re: Mounting shared network folder with mount R/W access
The mount command I'm using is:
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
Code: Select all
sudo mount.cifs //<IP>/public /home/pi/Shared/ -o user=pi,password=<PW>
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
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
viewtopic.php?p=200456#p1290795
viewtopic.php?p=1298913
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel
- scootergarrett
- Posts: 81
- Joined: Sat Apr 19, 2014 2:36 pm
Re: Mounting shared network folder with mount R/W access
Nice. adding 'vers=1.0' worked. Note that after the password there is a comma then no space
now I need to make sure it works on all older pies
Thanks so much
Code: Select all
sudo mount.cifs //<IP>/public /home/pi/Shared/ -o username=pi,password=<PW>,vers=1.0
Thanks so much