Re: pkg and downloaded files

2020-05-15 Thread Robert Swindells
Riccardo Mottola wrote: > >Do I miss something in my NFS config here? maybe server-side What do you have in /etc/exports on your server ? If you add the "-maproot=root" option then creating files as root will work. You might also want to restrict access to your local network by using the

Re: pkg and downloaded files

2020-05-15 Thread Greg A. Woods
At Fri, 15 May 2020 01:09:31 +0200, Riccardo Mottola wrote: Subject: Re: pkg and downloaded files > > > Actually the mapping is done on the server side, so on the client I > see the file as owned "by root" but the server considers it > "nobody"... if I had seen

Re: pkg and downloaded files

2020-05-14 Thread Riccardo Mottola
Hi, Sad Clouds wrote: Do I miss something in my NFS config here? maybe server-side By default NFS will map root user to nobody, hence you won't have correct permissions. See exports(5) man page and -maproot option. You probably need to explicitly map root to root, i.e. -maproot=root:wheel

Re: pkg and downloaded files

2020-05-14 Thread Roland Illig
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

Re: pkg and downloaded files

2020-05-14 Thread Sad Clouds
On Thu, 14 May 2020 23:25:40 +0200 Riccardo Mottola wrote: > Do I miss something in my NFS config here? maybe server-side By default NFS will map root user to nobody, hence you won't have correct permissions. See exports(5) man page and -maproot option. You probably need to explicitly map root

Re: pkg and downloaded files

2020-05-14 Thread Riccardo Mottola
Hi Roland, I think my issue is of totally different nature NFS... Roland Illig wrote: bmake show-all bmake show-all-fetch That's like saying "show me all interesting variables, properly grouped". When I'm not sure what to expect I run "bmake show-all", and I know that show-all-$group

Re: pkg and downloaded files

2020-05-14 Thread Roland Illig
On 14.05.2020 20:26, Sad Clouds wrote: On Thu, 14 May 2020 19:05:56 +0200 Riccardo Mottola wrote: Hi All, where do source files get saved? This in your mk.conf tells where to save distfiles DISTDIR= To find out that DISTDIR is the correct variable, here are two ways: bmake help

Re: pkg and downloaded files

2020-05-14 Thread Sad Clouds
On Thu, 14 May 2020 19:05:56 +0200 Riccardo Mottola wrote: > Hi All, > > where do source files get saved? This in your mk.conf tells where to save distfiles DISTDIR=

pkg and downloaded files

2020-05-14 Thread Riccardo Mottola
Hi All, where do source files get saved? I get a permission denied (see below) when it retrieves files. my pkgsrc is "shared" on nfs (but still, rw, so it should not be an issue) # create also all dependencies DEPENDS_TARGET=package-install # work here WRKOBJDIR=/home/pkg-workdir # save our