Solved

NFS in Unix

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

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 76

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

707 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