NFS: How to setup NFS?

Sorry I am new at this so forgive me for any stupid thingy that I do....

I tried mounting from client side and get this error message

mount -F nfs -o rw nfsservername:/export/home/mydir /mylocaldir

Permission Denied

what did I do wrong or what else do I need to do?

Server side
1) I edited /etc/dfs/dfstab and add
share -F nfs -o rw=nfsclientname /export/home/mydir


nfs.server start
rpc start

I add an entry of serverhostname to /etc/hosts

start the client
nfs.client start

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

petrixAuthor Commented:
hummm.... had a bloody power trip and the nfs service now works...

but still don't understand why it doesn't work previously... so can anyone tell me what else you need to do without restarting the server????

could be a lot of reasons:
      - not enough connections (see man nfsd)
      - nfsserver has any kind of firewall, then check /etc/hosts.* etc.
      - nfsd not running as root
What is your OS?

Client and server both.

I thnik your close.

1. The mount command must be done as root (or an account with root privs).

2. When stopping and starting services on the remote machine your order is slightly wrong. There should be no need to start rpc services again (or the machine has more problems than just NFS).

You should have
- edited /etc/dfs/dfstab
- started the nfs.server,
- finally issue the shareall command.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.