From: Hallvard B Furuseth Date: Fri, 27 Jan 2012 09:46:55 GMT Subject: Re: make install rewrites source files Message-ID: <79b0e5e55a438cc757cfeb6408be4d23@ulrik.uio.no> In-Reply-To: <4F1DC2F7.2070502@ubuntu.com> On Mon, 23 Jan 2012 15:28:39 -0500, Phillip Susi wrote: > On 1/23/2012 9:18 AM, Hallvard Breien Furuseth wrote: >> However, make install should not write to the source directory in >> any case. That fails as root if root lacks write access there, due >> to NFS mounts that map root to nobody etc. At least git-instaweb >> and GIT-BUILD-OPTIONS are rewritten. You can simulate this with su >> nobody -s /bin/bash -c 'make -k install' after configuring with >> prefix=. > > If you want to build locally from a read only nfs mount, then you > should run the configure script in a local directory: > > mkdir /tmp/build > (...) Not a read-only nfs mount. Just an ordinary remote mount where root on the local host is mapped to nobody on the remote host. (Having local root access does not mean you should get root on the remote.) In any case, it's normal practice to do as little as possible as root, and also to at least try not write to the source dir during install. BTW, building in /tmp can be nasty to other users when you don't know how much space the build (and maybe test) will use, so you may need access to some other local dir. -- Hallvard