1834218 Members
3545 Online
110066 Solutions
New Discussion

NFS

 
khilari
Regular Advisor

NFS

Hi guys, now when we have to export a directory we put the entry in /etc/exports file. Now, what if we want to export a directory without putting it in the above file.
How do we do it.
Thanks
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: NFS

You can't, it must be in that file.
What's so onerous about adding it?
A. Clay Stephenson
Acclaimed Contributor

Re: NFS

All you have to do is add the -i (ignore option)

exportfs -i -o root=mickey,donald,minnie /home
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: NFS

>Clay: All you have to do is add the -i

Thanks, learn something every day. (You can just use exportfs path.)

But it won't be exported if you reboot.
Steven Schweda
Honored Contributor

Re: NFS

Generally "I don't know how to" is safer than
"You can't".