On Tue, Nov 27, 2012 at 03:37:32PM +0800, Kks Kbase wrote: > I have tried to all_squash but no luck. Even I have tried to access it as root itself which have the same issue, all_squash won't help, you need to use no_root_squash or write permissions to other than root. Please read the relevant parts of the export man page carefully. --b. > > > > ----- Original Message ----- > From: J. Bruce Fields <bfields@xxxxxxxxxxxx> > To: Kks Kbase <kks.kbase@xxxxxxxx> > Cc: Linux NFS <linux-nfs@xxxxxxxxxxxxxxx> > Sent: Tuesday, 27 November 2012 8:09 AM > Subject: Re: NFS exportfs options > > On Tue, Nov 27, 2012 at 10:18:12AM +0800, Kks Kbase wrote: > > Here is the command that I have used to mount. > > > > > > mount -f nfs 1.2.3.4:/home/nfstest1 /mnt > > > > > > # ls -al /mnt/ > > total 28 > > drwxr-xr-x 2 root root 4096 Nov 22 01:50 . > > Only root is permitted to write to this directory. But you have > root_squash turned on (which is the default; see "man export"). > > --b. > > > drwxr-xr-x 25 root root 4096 Nov 23 20:21 .. > > -rw-r--r-- 1 root root 0 Nov 22 01:50 1 > > -rw-r--r-- 1 root root 0 Nov 22 01:50 2 > > -rw-r--r-- 1 root root 0 Nov 22 01:50 3 > > # ls -ld /mnt/ > > drwxr-xr-x 2 root root 4096 Nov 22 01:50 /mnt/ > > > > > > > > Here is the output in mount command, > > > > 1.2.3.4:/home/nfstest1 on /mnt type nfs (rw,addr=1.2.3.4) > > > > > > > > > > ----- Original Message ----- > > From: J. Bruce Fields <bfields@xxxxxxxxxxxx> > > To: Kks Kbase <kks.kbase@xxxxxxxx> > > Cc: Linux NFS <linux-nfs@xxxxxxxxxxxxxxx> > > Sent: Sunday, 25 November 2012 8:18 PM > > Subject: Re: NFS exportfs options > > > > On Sun, Nov 25, 2012 at 12:07:13PM +0800, Kks Kbase wrote: > > > Hi, > > > > > > Here is the mounted option on /var/lib/nfs/etab > > > > > > # cat /var/lib/nfs/etab > > > /home/nfstest1 *(rw,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,no_subtree_check,secure_locks,no_acl,mapping=identity,anonuid=65534,anongid=65534) > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: Kks Kbase <kks.kbase@xxxxxxxx> > > > To: Linux NFS <linux-nfs@xxxxxxxxxxxxxxx> > > > Cc: > > > Sent: Wednesday, 21 November 2012 12:40 PM > > > Subject: NFS exportfs options > > > > > > > > > > > > Hi, > > > > > > Today I have tried to setup the NFS share. > > > > > > > > > Here is the exportsfs on NFS server > > > > > > /home/nfstest1 *(rw) > > > > > > Then I have mounted the nfs share folder and tried to create folders and files. But I am always getting the error as permission denied either root or normal user. > > > > > > Any ideas please? > > > > How are you mounting this on the client? > > > > Have you checked permissions on the exported directory? (ls -ld > > /home/nfstest1). > > > > --b. > > > -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html