I have been using my Freenas 11.2-U5 for sharing music and pictures etc. From time to time I run into permissions problems on NFS or CIFS shares and I just power through by logging into the NAS via SSH and adjusting permissions to do what I need to do. Currently, I have a NFS share mounted on a RPi and want to build some programs in this mounted share using mapkpke on the RPi. I have the NFS share set with Mapall user 'root' and Mapall group 'wheel' (right or wrong, that is what I have). I mount it from the RPi with this line in my fstab:
When I git pull then build, it works fine sometimes. Some packages, though, require a change of ownership when running the script in makepkg and I get this error when it tries:
edit: Another issue is very similar with group ownership with patching code and it returns:
my guess is that the script is trying to change the ownership of a file while in 'fakeroot' or even while patching and cannot do so as permissions are controlled by the NAS. All subsequent files are owned by nobody:nobody when I 'ls' the directory on the RPi. When I am on the NAS and run 'ls', all files are owned by root:wheel (as expected). I tried changing the settings to mapall user to kgrider (me) and mapall group to wheel' and now when I ls from the NAS it reports all fiels owned by kgrider:kgrider (yes, I am member of the wheel group on the NAS)
Is there a way to create my share so that I can change ownership properly from the RPi? My user on the RPI is alarm. I have struggled with this for years and read a ton of stuff on permissions. I understand some of it, but always seem to get hung up on this when trying to chmod or chown from a client to any share on the NAS.
Keith
Code:
192.168.2.198:/mnt/first_NAS/Rune_dev /Rune_dev nfs rw 0 0
When I git pull then build, it works fine sometimes. Some packages, though, require a change of ownership when running the script in makepkg and I get this error when it tries:
Code:
/AUR/aixlog]$ makepkg ==> Making package: aixlog 1.2.1-2 (Sun 04 Aug 2019 12:10:04 PM CDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found v1.2.1.tar.gz ==> Validating source files with sha256sums... v1.2.1.tar.gz ... Passed ==> Extracting sources... -> Extracting v1.2.1.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Entering fakeroot environment... ==> Starting package()... install: cannot change ownership of '/Rune_dev/AUR/aixlog/pkg/aixlog/usr/include/aixlog.hpp': Invalid argument ==> ERROR: A failure occurred in package(). Aborting...
edit: Another issue is very similar with group ownership with patching code and it returns:
Code:
... patching file Makefile patch: **** Failed to set the owning group of file ./Makefile.oRgGY8H : Invalid argument ==> ERROR: A failure occurred in prepare(). Aborting...
my guess is that the script is trying to change the ownership of a file while in 'fakeroot' or even while patching and cannot do so as permissions are controlled by the NAS. All subsequent files are owned by nobody:nobody when I 'ls' the directory on the RPi. When I am on the NAS and run 'ls', all files are owned by root:wheel (as expected). I tried changing the settings to mapall user to kgrider (me) and mapall group to wheel' and now when I ls from the NAS it reports all fiels owned by kgrider:kgrider (yes, I am member of the wheel group on the NAS)
Is there a way to create my share so that I can change ownership properly from the RPi? My user on the RPI is alarm. I have struggled with this for years and read a ton of stuff on permissions. I understand some of it, but always seem to get hung up on this when trying to chmod or chown from a client to any share on the NAS.
Keith
Last edited: