I've just reinstalled my iMac on my home network, and have mounted the user home directories via a NFS share (hosted on an Ubuntu server).
The problem I have is that when I use sudo, I get permission denied to my own home directory.
My UID is 501 and I'm allowed to use sudo by virtue of me being a member of the Admin group (GID 80).
On the Ubuntu server, I've configured my home directory as follows:
Ubuntu# ls -ln | grep bryan
drwxrwx--- 35 501 80 4096 2012-01-27 14:09 bryan
Which translates correctly on the mac:
iMac$ ls -l | grep bryan
drwxrwx--- 35 bryan admin 4.0K 27 Jan 14:09 bryan/
As root is also a member of admin (GID 80), I'd have expected sudo to have allowed access to my home directory, but as you can see below, this isn't the case.
iMac$ whoami
bryan
iMac$ sudo bash
bash: /Volumes/home/bryan/.bashrc: Permission denied
iMac# whoami
root
iMac# cd /Volumes/home/bryan/
bash: cd: /Volumes/home/bryan/: Permission denied
Just to confirm, the following is the relevant part of output from dscacheutil -q group on my iMac:
name: admin
password: *
gid: 80
users: root bryan
What can I do to enable access to my home directory on the iMac when using sudo?