[quote]Have you done "exportfs -r" or rebooted the server after making the changes to /etc/exports?[/quote]
yes I do.I disable firewall .
[code]
[root@localhost ali]# exportfs -r
[root@localhost ali]# exportfs -v
/home/ali/Packages
192.168.1.0/24(rw,wdelay,no_root_squash,no_subtree_check)
/home/ali/nfs1 192.168.1.0/24(rw,wdelay,no_root_squash,no_subtree_check)
[root@localhost ali]#
[/code]
My mind does not work :-? :-(
So why run is this way:
[code]
[root@centos admin]# mount -t nfs -o vers=3,rw,hard,bg,intr 192.168.1.100:/home/ali/nfs1 /nfs1/
[/code]
NFS access denied by server while mounting
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: NFS access denied by server while mounting
The moving target is not helping. Every time you show the exports rules they are different.
Re: NFS access denied by server while mounting
Sorry dude.
This target is fixed .I promise.
This is target :
Server :
/etc/exports
[code]
/home/ali/Packages 192.168.1.0/24(rw,no_root_squash)
/home/ali/nfs1 192.168.1.0/24(rw,no_root_squash)
[/code]
[code]
[root@localhost ali]# exportfs -r
[root@localhost ali]# exportfs -v
/home/ali/Packages
192.168.1.0/24(rw,wdelay,no_root_squash,no_subtree_check)
/home/ali/nfs1 192.168.1.0/24(rw,wdelay,no_root_squash,no_subtree_check)
[root@localhost ali]# nano /etc/exports
[root@localhost ali]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@localhost ali]#
[/code]
And firewall is Disable.
.the server IP address is 192.168.1.100
and the labtop IP address is 192.168.1.101.when I do :
[code]
[root@centos admin]# mount -t nfs4 192.168.1.100:/home/ali/nfs1 /nfs1/
mount.nfs4: access denied by server while mounting 192.168.1.100:/home/ali/nfs1
[/code]
What can I do??
Plz help me step by step :-o
This target is fixed .I promise.
This is target :
Server :
/etc/exports
[code]
/home/ali/Packages 192.168.1.0/24(rw,no_root_squash)
/home/ali/nfs1 192.168.1.0/24(rw,no_root_squash)
[/code]
[code]
[root@localhost ali]# exportfs -r
[root@localhost ali]# exportfs -v
/home/ali/Packages
192.168.1.0/24(rw,wdelay,no_root_squash,no_subtree_check)
/home/ali/nfs1 192.168.1.0/24(rw,wdelay,no_root_squash,no_subtree_check)
[root@localhost ali]# nano /etc/exports
[root@localhost ali]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@localhost ali]#
[/code]
And firewall is Disable.
.the server IP address is 192.168.1.100
and the labtop IP address is 192.168.1.101.when I do :
[code]
[root@centos admin]# mount -t nfs4 192.168.1.100:/home/ali/nfs1 /nfs1/
mount.nfs4: access denied by server while mounting 192.168.1.100:/home/ali/nfs1
[/code]
What can I do??
Plz help me step by step :-o
[SOLVED]NFS access denied by server while mounting
I finally solved. :-D
First in server :
/etc/exports
[code]
/home/ali 192.168.1.0/24(ro,fsid=0,insecure,no_root_squash,no_subtree_check,async)
/home/ali/Packages 192.168.1.0/24(rw,no_root_squash)
/home/ali/nfs1 192.168.1.0/24(rw,nohide,insecure,no_root_squash,no_subtree_check,async)
[/code]
and in client :
fstab:
[code]
192.168.1.100:/nfs1 /home/admin/Share-Repo nfs4 _netdev,auto,rw,hard,intr 0 0
[/code]
and the last :
mount -a
It's ok?
First in server :
/etc/exports
[code]
/home/ali 192.168.1.0/24(ro,fsid=0,insecure,no_root_squash,no_subtree_check,async)
/home/ali/Packages 192.168.1.0/24(rw,no_root_squash)
/home/ali/nfs1 192.168.1.0/24(rw,nohide,insecure,no_root_squash,no_subtree_check,async)
[/code]
and in client :
fstab:
[code]
192.168.1.100:/nfs1 /home/admin/Share-Repo nfs4 _netdev,auto,rw,hard,intr 0 0
[/code]
and the last :
mount -a
It's ok?