Solved

NFS in Unix

Posted on 2013-06-05
5
430 Views
Last Modified: 2013-06-24
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.
0
Comment
Question by:ittechlab
  • 2
  • 2
5 Comments
 
LVL 77

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 39224529
Usually, if you do not specifically grant root with read write rights in exports, root will be mapped to a nobody dealing with accessing the NFS resource.
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-nfs-server-config-exports.html
0
 

Author Comment

by:ittechlab
ID: 39225463
I tried to mount a nfs share and i am getting this error. please advice

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.
0
 

Author Comment

by:ittechlab
ID: 39225514
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)
0
 
LVL 77

Expert Comment

by:arnold
ID: 39225805
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.
0
 
LVL 13

Accepted Solution

by:
Sandy earned 250 total points
ID: 39235809
try by using username and password while mounting.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Coding C# in Linux 8 120
number in printf 13 32
error while installing php56 in redhat enterprise linux 20 50
SSL/TLS - openssl troubleshooting 3 39
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question