Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm kind of new to using NFS in the context of Linux permissions, so I'm a little lost on how I can make this work.

Here's my setup:

  • alpha writes files as root to the mounted NFS share.
  • beta serves NFS and reads files from the shared directory, as well as serves the files out over HTTP. The HTTP server runs as user blaster with group server.

The dilemma I'm facing is that files are written as root on alpha and can't read or written by user blaster of group server on beta.

The question is: how can I fix this? Do I have to create user blaster and group server on alpha and write files using this user and group in order to allow things to be shared with beta?

share|improve this question
up vote 1 down vote accepted

Writing files as root to an NFS share (by an NFS client) is a really bad idea. So bad, that the default is to not permit this.

If you want the same privileges on beta as on alpha, then you need to create users with the same User ID on both machines and groups with the same Group ID on both machines. The actual names are irrelevant, though it is really handy that they are the same.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.