Solved

NFS in Unix

Posted on 2013-06-05
5
427 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Shell Script on AIX 7 94
Video Streaming 6 72
Linux VM 6 86
winscp 000webhost.com 6 43
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now