Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have debian as an NFS client. I would like to mount a remote NFS with a specific user permissions (to specify the remote user account)

How can I do that?

share|improve this question
add comment

migrated from stackoverflow.com Mar 16 '10 at 14:41

This question came from our site for professional and enthusiast programmers.

2 Answers

NFS, while useful, is not generally great at dealing with user perms. In order to do this you have to do a few things:

  1. The UID of the files on the mount need to be the same as the user's UID on the local box
  2. If the user has local root you'll want to make sure root-squash is active on the NFS server. This ensures that access to files as the local root user is blocked.
  3. That said, if the user does have local root, it's pretty trivial for that user to create a local account with the same UID as the files he wants to get access to, and su to the new local user account, thus giving access to any file with the same UID as the newly created local user.
share|improve this answer
add comment

Under Ubuntu, a debian-based distribution, you should enter the command:

 sudo apt-get install nfs-common

You should then be able to connect and mount any available NFS-available directory.

share|improve this answer
4  
This question neither addresses the specifics of connecting to an NFS server nor addressing the permissions issues in the question. –  bobmagoo Aug 27 '12 at 18:57
add comment

Your Answer

 
discard

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.