[Turn]ubuntu11.04 configuration nfs--resolve mount.nfs:access denied issues

Source: Internet
Author: User
Tags chmod root access

Finally passed the NFS localhost test.

The configuration is simple, the following excerpt from the network, and organized:

1 Installing NFS

#apt-get Install Nfs-kernel-server

#apt-get Install Nfs-common

2 Configuring/etc/exports

Add at the end of text

#/root/nfs_root * (Rw,sync,no_root_squash)

#chmod 777-r/root/nfs_root

You can use SHOWMOUNT-E to see if the current configuration is already in effect

#showmount-E

Export list for medea-ms-7680:

The description has not yet taken effect.

Update configuration with Exportfs-r

#exportfs-R

#showmount-E

Export list for medea-ms-7680:

/root/nfs_root *

3 start

#/etc/init.d/nfs-kernel-server Restart Re-NFS service

Simply put, you can use NFS in 3 steps. You can use localhost for the local mount Test.

The network will generally also configure/etc/hosts.deny and/etc/hosts.allow. The primary is to configure permission control for IP access. But I don't want to configure it, I feel there's nothing important on my PC. is ignored.

Well, my nightmare has begun.

#mount-T NFS Localhost:/root/nfs_root/root/book

The following prompt appears: Mount.nfs:access denied by server while mounting localhost:/root/nfs_root

It took me 3 days to detect. Found no problem with the computer configuration in the company. There will be a problem with the desktop at home.

Search online could not find any reason. Depressed.

Later, I tried reconfiguring/home/medea as a mount point and found incredibly passed.

I'll go to the root directory, Ls-al. Finally found the problem. The original permission of my/root is drwx------root root 4096 2011-09-18 07:43 root

I thought that, after the local mount, it would be another kind of user login. Root access has been a problem.

So:

#chmod 755/root

In an attempt to

#mount-T NFS Localhost:/root/nfs_root/root/book

[Turn]ubuntu11.04 configuration nfs--resolve mount.nfs:access denied issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.