Is it possible to give access to a nfs share to a particular
user in a particular system?

Answer Posted / raj

you can give permission to an ip or to the users(The user
should be from the system where the file is getting
shared,external access from users arenot allowed except for
nfsnobody). If you want to give permission to an ip then
open /etc/exports...Let /data be the shared directory:
/data 10.2.1.1(ro,sync)

To give permission to a user like harry:
setfacl -m u:harry:rwx /data.

By default the nfs gets accessed by the user nfsnobody. So
you can add or remove a particular permissions to this user
using acl.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pthread_mutex_t in c?

442


Explain virtual desktop.

476


How many types of files are there in linux?

414


How do I start linux?

470


Is it difficult to learn linux?

445






how do you list and flush all ip tables in linux?

447


Name a service that you should disable (which acts both as web and ftp server) on a linux server?

614


What are the main difference between nfs and samba servers?

429


How do I get to a command prompt in linux?

441


What is sem_post?

470


What is the basic difference between bash and dos?

567


What is the maximum length for a file name in Linux?

474


What is sudo in linux?

503


What is bash shell?

445


How do I check hard drive space on linux?

455