the network is . . . whatever you need it to be

I followed these excellent docs for setting up automounting in OS X. This was useful for a couple of reasons:

  • backups using Apple’s Backup utility
  • mounting source code repositories that I don’t need to keep on my ickle 30 Gb drive

So backups work just fine: at 9:30 AM, Backup kicks off, mounts the drive, and updates the backup repository.
But updating my darwinports-installed binaries has been failing: I would get screens full of this.

---> Extracting openssl
Error: Target com.apple.extract returned: shell command "cd �/mnt/red/darwinports/dports/devel/openssl/work" && gzip -dc /opt/local/var/db/dports/distfiles/openssl/openssl-0.9.7e.tar.gz | tar -xf -� returned error 2
Command output: tar: openssl-0.9.7e/util/pl/ultrix.pl: Cannot change ownership to uid 0, gid 0: (null)
tar: openssl-0.9.7e/util/pl/unix.pl: Cannot change ownership to uid 0, gid 0: (null)

Changing uid and gid ownership with chmod(1) didn’t do anything. Then I remembered something from the stub /etc/exports file, something about mapping the root user’s UID . . . .

Sure enough, adding -maproot=0 fixed it.

/opt -maproot=0 -alldirs -network 192.168.2.0 -mask 255.255.255.0

Now all seems well.
Now to bounce the NFS server:

On the server (kill the NFS daemon, restart mountd, and restartd the NFS daemon):

killall -TERM nfsd
killall -hup mountd
nfsd -u -t -n 4

Now playing: Verbum Bonum Et Suave by Anonymous 4 from the album “La Bele Marieâ€? | Get it

Leave a Reply

Your email address will not be published. Required fields are marked *