ittechlab
asked on
NFS in Unix
I created a NFS Share on one linux server.
[root@desktop4 ~]# cat /etc/exports
/prod *(rw,sync)
[root@desktop4 ~]# showmount -e localhost
Export list for localhost:
/prod *
Mounted on 2nd Linux server
[root@desktop10 ~]# ls -ld /prod/apache/
drwx------. 2 root root 4096 Jun 5 18:30 /prod/apache/
[root@desktop10 ~]# mount -t nfs 10.10.10.39:/prod /prod/apache/
[root@desktop10 ~]# ls -ld /proc/apac
drwxr-xr-x. 2 nobody nobody 4096 Jun 5 13:13 /prod/apache/
[root@desktop10 ~]#
I did shared with rw permission on the NFS server, how it is mounting with following permission.
drwxr-xr-x. 2 nobody nobody 4096 Jun 5 13:13 /prod/apache/
Can some one explain how permission works here. I am kind of new to NFS.
[root@desktop4 ~]# cat /etc/exports
/prod *(rw,sync)
[root@desktop4 ~]# showmount -e localhost
Export list for localhost:
/prod *
Mounted on 2nd Linux server
[root@desktop10 ~]# ls -ld /prod/apache/
drwx------. 2 root root 4096 Jun 5 18:30 /prod/apache/
[root@desktop10 ~]# mount -t nfs 10.10.10.39:/prod /prod/apache/
[root@desktop10 ~]# ls -ld /proc/apac
drwxr-xr-x. 2 nobody nobody 4096 Jun 5 13:13 /prod/apache/
[root@desktop10 ~]#
I did shared with rw permission on the NFS server, how it is mounting with following permission.
drwxr-xr-x. 2 nobody nobody 4096 Jun 5 13:13 /prod/apache/
Can some one explain how permission works here. I am kind of new to NFS.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
when i share a nfs mount on linux, isn't that nfs ver=4 by default?
Red Hat Enterprise Linux Server release 5.9 (Tikanga)
Red Hat Enterprise Linux Server release 5.9 (Tikanga)
Post the exports file.
ls -la / |grep test
You can use an option to explicitly specify the nfs verizon to use, 5 might default to NFS version 3.
ls -la / |grep test
You can use an option to explicitly specify the nfs verizon to use, 5 might default to NFS version 3.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
root@host2:/root> mount -F nfs host1:/tmp/test /test
nfs mount: mount: /test: Not owner
I did share on Linux system and mounting on Solaris Unix.