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 two machines between which I need to share a folder.

On server1, I have the user 'appuser' that needs to access (read/write/delete) on this share.

On server2, 'root' accesses this share and writes to it.

I have the following in /etc/exports on server1:

/home/app-share 999.999.99.99/28(rw,insecure,sync,no_root_squash)

where the number is the IP address. How can I change this to allow 'appuser' access?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

NFS doesn't have share-level permissions. Access to the file on a NFS share follows normal *nix permissions.

share|improve this answer
    
Okay - so how do I give this useraccount permission to access this share? (sorry if i'm asking a very basic question) –  siliconpi Oct 11 '10 at 11:24
    
It has access to the share already. You need to modify the permissions of the files and directories within the share using chmod, chown, setfacl, etc. –  Ignacio Vazquez-Abrams Oct 11 '10 at 11:26
    
Actually no, the user account does not have access to it... could it be because its in /home/app-share? I only see that user's home directory. What's a conventional location for such a file-share folder? –  siliconpi Oct 11 '10 at 11:32
    
Under /srv is generally a good place to put service data. –  Ignacio Vazquez-Abrams Oct 11 '10 at 11:41
    
and that folder will be accessible to all users on the system? (i'll just have one other user - the account under which I operate the website) –  siliconpi Oct 11 '10 at 11:45

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.