[ 
https://issues.apache.org/jira/browse/HDFS-7942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Li updated HDFS-7942:
-----------------------------
    Description: 
Thanks, [~yeshavora], for reporting this problem.

Set regex value in nfs.exports.allowed.hosts property.

{noformat}
<property><name>nfs.exports.allowed.hosts</name><value>206.190.52.[26|23] 
rw</value></property>
{noformat}

With this value, neither 206.190.52.26 nor 206.190.52.23 can mount nfs and act 
as nfs client. In conclusion, no host can mount nfs with this regex value due 
to access denied error.

{noformat}
>$ sudo su - -c "mount -o 
>soft,proto=tcp,vers=3,rsize=1048576,wsize=1048576,nolock 206.190.52.23:/ 
>/tmp/tmp_mnt" root
mount.nfs: access denied by server while mounting 206.190.52.23:/
{noformat}

  was:
set regex value in nfs.exports.allowed.hosts property.

{noformat}
<property><name>nfs.exports.allowed.hosts</name><value>206.190.52.[26|23] 
rw</value></property>
{noformat}

With this value, neither 206.190.52.26 nor 206.190.52.23 can mount nfs and act 
as nfs client. In conclusion, no host can mount nfs with this regex value due 
to access denied error.

{noformat}
>$ sudo su - -c "mount -o 
>soft,proto=tcp,vers=3,rsize=1048576,wsize=1048576,nolock 206.190.52.23:/ 
>/tmp/tmp_mnt" root
mount.nfs: access denied by server while mounting 206.190.52.23:/
{noformat}


> NFS: regex value of nfs.exports.allowed.hosts is not working as expected
> ------------------------------------------------------------------------
>
>                 Key: HDFS-7942
>                 URL: https://issues.apache.org/jira/browse/HDFS-7942
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>    Affects Versions: 2.6.0
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>
> Thanks, [~yeshavora], for reporting this problem.
> Set regex value in nfs.exports.allowed.hosts property.
> {noformat}
> <property><name>nfs.exports.allowed.hosts</name><value>206.190.52.[26|23] 
> rw</value></property>
> {noformat}
> With this value, neither 206.190.52.26 nor 206.190.52.23 can mount nfs and 
> act as nfs client. In conclusion, no host can mount nfs with this regex value 
> due to access denied error.
> {noformat}
> >$ sudo su - -c "mount -o 
> >soft,proto=tcp,vers=3,rsize=1048576,wsize=1048576,nolock 206.190.52.23:/ 
> >/tmp/tmp_mnt" root
> mount.nfs: access denied by server while mounting 206.190.52.23:/
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to