How to set password for NFS shares in centos


Hi members,

i have got some doubts in NFS , please help me to clear

I. ) i want to set username and password for NFS share,i tried in terminal like below,its showing error like wrong usage of command, can u tell me whats the mistake i m doing

mount /media nfs user=administrator,password=pass

II. ) can u please explain about the no_root_squash option in NFS with some real time example, im getting confused about this

Thanks in advance


for NFS there is no user base authentication. only SAMBA got user athentication