Networking Forums

Networking Forums > Computer Networking > Linux Networking > prob: NFS: /etc/exports

Reply
Thread Tools Display Modes

prob: NFS: /etc/exports

 
 
vicky
Guest
Posts: n/a

 
      07-11-2005, 11:14 AM
Hello Everyone,

I want to export "directory_2_export". Now i've made entry in
/etc/exports file of server:

/directory_2_export 192.168.0.65(wr)


my problem is when i try to mount it from client machine, its shows
"permission denied".
because root user is linked to nobody when it try to access
directory_2_export(i suppose).

i'm new to linux adminstration, please help.

--
Thanks in Advance
Vikas Talwar

 
Reply With Quote
 
 
 
 
Bob
Guest
Posts: n/a

 
      07-11-2005, 11:44 AM
vicky wrote:

> Hello Everyone,
>
> I want to export "directory_2_export". Now i've made entry in
> /etc/exports file of server:
>
> /directory_2_export 192.168.0.65(wr)
>
>


Try (rw) instead of (wr).
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      07-11-2005, 02:16 PM
On 11 Jul 2005 04:14:47 -0700, vicky
<(E-Mail Removed)> wrote:
> Hello Everyone,
>
> I want to export "directory_2_export". Now i've made entry in
> /etc/exports file of server:
>
> /directory_2_export 192.168.0.65(wr)
>
>
> my problem is when i try to mount it from client machine, its shows
> "permission denied".
> because root user is linked to nobody when it try to access
> directory_2_export(i suppose).
>
> i'm new to linux adminstration, please help.
>

Did you restart nfsd or nfs-kernel-server after changing /etc/exports?



--
Tonight you will pay the wages of sin; Don't forget to leave a tip.
 
Reply With Quote
 
Mr. Boy
Guest
Posts: n/a

 
      07-11-2005, 08:58 PM
hi,
first after changing any exports in /etc/exports you should do as root:
root@server~# /usr/sbin/exportfs -a

This updates nfs' exported directories...

also, it is very important to add into the export line the behavior of
root and other users... how?
/export/dir 192.168.x.x(rw,root_no_squash,async,etc)

you must decide wether you want to have the remote machines (nfs
clients) root user mapped as the local root or mapped as nobody (on nfs
server)

The default is to have uid 0 mapped as nobody, so if you want this use
root squashing and change permissions in the exported directories, or
if you want to have the uid 0 on client machines mapped as root on
server use root_no_squash as another option in the exports file.

But mapping remote root as local root could be a security risk...

also do some "man" at exports... there is some explanation...
root@server~# man 5 exports

 
Reply With Quote
 
vicky
Guest
Posts: n/a

 
      07-18-2005, 04:44 AM
Thanks,

Its working now.

Chills
Vikas Talwar

vicky wrote:
> Hello Everyone,
>
> I want to export "directory_2_export". Now i've made entry in
> /etc/exports file of server:
>
> /directory_2_export 192.168.0.65(wr)
>
>
> my problem is when i try to mount it from client machine, its shows
> "permission denied".
> because root user is linked to nobody when it try to access
> directory_2_export(i suppose).
>
> i'm new to linux adminstration, please help.
>
> --
> Thanks in Advance
> Vikas Talwar


 
Reply With Quote
 
Mr. Boy
Guest
Posts: n/a

 
      07-18-2005, 01:40 PM
Your Welcome Vicky...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browsing exports - NFS Server Jeremy Windows Networking 0 05-14-2010 04:05 PM
Secretly filmed in an English abattoir... HEALTHY HORSES AND PONIES BUTCHERED FOR MEAT EXPORTS Old Codger Home Networking 4 09-28-2007 10:13 AM
NFS and rules of /etc/exports Robot Linux Networking 1 08-04-2005 01:27 PM
xp/win 98 prob Gorzzz Home Networking 3 11-21-2004 09:47 AM
Group access on NFS exports. Suddn Linux Networking 5 01-04-2004 06:25 AM



1 2 3 4 5 6 7 8 9 10 11