Re: [mh] NFS and permissions
Joel Davidson <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Do you have a user on the nas with the same uid as the user on the pi? If not, that may be the problem. As I recall, nfs checks uid's to allow file access. Joel On Oct 14, 2019 3:16 PM, Timothy Spaulding <[email protected]> wrote: Hi Joel, I don't have a 'pi' user on the NAS. But the UIDs for the rpi 'pi' are the same across all of my rpi devices. -----Original Message----- From: Joel Davidson <[email protected]> Sent: Monday, October 14, 2019 4:05 PM To: Timothy Spaulding <[email protected]> Cc: [email protected] Subject: Re: [mh] NFS and permissions Tim- Have you checked that the uid for the user 'pi' is the same on the rpi and the nas? I've seen permissions gets changed if the uid's don't match. I seem to recall a way to map uid's between systems, but I don't remember much about it. Joel On Mon, 14 Oct 2019, it would appear that Timothy Spaulding wrote: > Hi Giles, > > Thanks for the idea. Unfortunately, it didn't make a difference. > > After the volume is mounted, the permissions all disappear from the perspective of the 'pi' user. However, if I were to do a 'su' to root and then a ls -l /mnt, I would see the syn folder has rwx for owner,group,everyone. > > Tim > > From: Giles Godart-Brown <[email protected]> > Sent: Monday, October 14, 2019 3:14 AM > To: [email protected] > Subject: Re: [mh] NFS and permissions > > > Tim > > I'm not sure if this is related, but some early versions of PI had > problems with NFS version 4 on Synology NAS, when this happens, I > force it to use version 3 by for example having an fstab something > like this > > 192.168.100.35:/volume1/pishare /mnt/pishare nfs > nouser,atime,auto,rw,dev,exec,suid,nfsvers=3 0 0 > > Regards > > Giles > > > On 13/10/2019 22:38, Timothy Spaulding wrote: > Hello All, > > This isn't a MH question/issue per se, but it does involve a raspberry PI that I might would like to make my MH machine. > > Short story: > I have a Synology NAS that has a NFS volume/path exported I have to > RPIs that can mount the NFS volume and read/write with no issues I > have a brand new RPI 4 and an older Debian (stretch) install that mounts the NFS volume, but gets a permissions denied when trying to simple ls the contents of the volume. > > Logged on as pi, > > sudo mkdir /mnt/syn > sudo mount <NAS>:/volume1/nfs /mnt/syn ls -l /mnt > > > d--------- 1 root root 268 Oct 13 14:24 syn > > is the result I get after mounting, if I were to unmount the volume (and these are the same values before mouinting), I get the following from the ls -l command: > > drwxr-xr-x 2 root root 4096 Oct 13 14:02 syn > > As I see it, the chmod permission are changing when mounting the NFS volume. The strangest part to me is that it works on 2 other RPIs. > > I hope someone has some ideas I cnatry. > > Tim > > > > > ________________________________________________________ > > To unsubscribe from this list, go to: > https://lists.sourceforge.net/lists/listinfo/misterhouse-users > > > ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users