Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I start NFS service on a server in a different city, and the setting in the /etc/exports as below:

/data/shared 10.2.6.*(rw,sync)

When I mount the NFS directory,it throws an error:

mount: ..... failed, reason given by server: Permission denied

When i change the setting in the /etc/exports on the remote server as below:

/data/shared 10.2.6.12(rw,sync)

It works well.

Why i use a ip pattern, it failed? Anyone know?

share|improve this question

migrated from stackoverflow.com Dec 26 '12 at 15:53

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

The * wildcard only works with (sub-)domain entries. For a range of IP addresses, you need to give NFS the subnet base address and netmask in CIDR notation. For more information, see the "Machine Name Formats" section of the exports(5) man page.

share|improve this answer
    
Thanks very much! –  kino lucky Dec 28 '12 at 3:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.