Thanks. I think my /etc/hosts is okay. I've remembered another detail that makes this odd (or perhaps caused the problem). When I first set this up the my user accounts on the server and client not only had different names they also had different uids (1000 on the server and 1010 on the client). This meant that when I mounted the export the files were owned by the user on the client with uid 1000). I therefore changed my uid on the server to match the client using
- Code: Select all
usermod -u 1010 username
After doing this I expected to see the correct username on the client, but instead see the long number.
So for some reason changing the uid on the server seems to have caused this problem.