Re: NFS - Permission Denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Try turning off root_squash in your /etc/exports file...
Default NFS server behavior is to prevent root on client machines from having privileged access to exported files. Servers do this by mapping the "root" user to some unprivileged user (usually the user "nobody") on the server side. This is known as root squashing.
One way to test, can you add files/dirs as a non root user?
John

On Thu, Jun 17, 2010 at 12:47 PM, James Corteciano <james@xxxxxxxxxxxxxxxx> wrote:
Hi Boris,

[root@server]# ls -ld /nfs/iso

drwxrwx--- 2 root apache 4096 Jun 18 00:46 /nfs/iso

Regards,
James


On Fri, Jun 18, 2010 at 12:36 AM, Boris Epstein <borepstein@xxxxxxxxx> wrote:
On Thu, Jun 17, 2010 at 12:17 PM, James Corteciano
<james@xxxxxxxxxxxxxxxx> wrote:
> Hi All,
>
> This is the settings of my NFS server (192.168.10.55)
>
> /etc/exports:
>                    /nfs/iso   192.168.10.0/255.255.255.0(rw,sync)
>
> >From the remote host, I mount it correctly. But when I write/create
> files/directory inside the mounted nfs directory (from /nfs/test), it will
> give me "Permission Denied".
>
> [root@remote]# mount -t nfs 192.168.10.55:/nfs/iso /nfs/test
> [root@remote]# mkdir /nfs/test/testing
> mkdir: cannot create directory `testing': Permission denied
>
> Hope anyone could help me to fix this.
>
> Thank you.
>
> Regards,
> James
>
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
>
James,

On the server, who owns /nfs/iso? What are the permissions on that directory?

Boris.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




--
Did you know that it costs forty thousand dollars a year to house each prisoner?...I don't think we should give free room and board to criminals. I think they should have to run twelve hours a day on a treadmill and generate electricity. And if they don't want to run, they can rest in the chair that's hooked up to the generator.
-George Carlin
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux