NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg and downloaded files



On 14.05.2020 23:25, Riccardo Mottola wrote:
ithil:/disk2/pkgsrc     /usr/pkgsrc  nfs rw,nodev,nosuid,noauto

but...
 > sudo touch a
touch: a: Permission denied

however permissions look fine too:
 > ls -ld distfiles
drwxr-xr-x  3 root  wheel  512 Mar 31 06:42 distfiles


Do I miss something in my NFS config here? maybe server-side

Yep, you did.  A typical NFS setup maps all filesystem accesses by
"root" to "nobody", for security reasons.

I'd expect that the access is granted if you change the ownership of
/usr/pkgsrc/distfiles:

chown nobody /usr/pkgsrc/distfiles
chown 65534 /usr/pkgsrc/distfiles   # if the above doesn't work
chown root /usr/pkgsrc/distfiles    # restore it


Home | Main Index | Thread Index | Old Index