LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS Mount (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-mount-921984/)

deep27ak 01-05-2012 07:51 AM

Quote:

Originally Posted by dorlack (Post 4566809)
[jweath02@cs ~]$ ls -l / | grep mnt
drwxr-xr-x. 3 root root 4096 Jan 3 21:29 mnt
[jweath02@cs ~]$ ls -l /mnt
total 1
drwx------. 2 4294967294 4294967294 64 Jan 4 08:43 tmp
[jweath02@cs ~]$

you were getting permission denied may be because of the permission.

I don't understand the owner of this tmp directory but you can try changing th ownership and permission and give a try to mounting

Code:

#chown root:root /mnt/tmp
#chmod 777 /mnt/tmp


dorlack 01-05-2012 08:05 AM

The NFS server us running on a Windows machine...

dorlack 01-05-2012 08:06 AM

[root@cs /]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination



IP tables on the client is posted above.

No firewall config, this is a fresh install of RHEL 6.2 WS

dorlack 01-05-2012 08:09 AM

[root@cs /]# chown root:root /mnt/tmp
chown: changing ownership of `/mnt/tmp': Permission denied
[root@cs /]# chmod 777 /mnt/tmp
chmod: changing permissions of `/mnt/tmp': Permission denied
[root@cs /]#

deep27ak 01-05-2012 08:11 AM

Never worked with NFS server on windows :(

check the firewall on windows and on your linux machine

deep27ak 01-05-2012 08:14 AM

stop the firewall and try mounting

Code:

#service iptables stop

dorlack 01-05-2012 08:19 AM

[root@cs /]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS? /NFS
mount.nfs: access denied by server while mounting (null)
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
mount.nfs: access denied by server while mounting (null)
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
mount.nfs: access denied by server while mounting (null)

deep27ak 01-05-2012 08:23 AM

Quote:

Originally Posted by dorlack (Post 4566847)
[root@cs /]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS? /NFS
mount.nfs: access denied by server while mounting (null)
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
mount.nfs: access denied by server while mounting (null)
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
mount.nfs: access denied by server while mounting (null)

you are using different names while mounting?

you said the server is on windows?
I don't think I would be able to help with windows stuff but here are some links might be helpful

http://social.technet.microsoft.com/...-f4bf40de9c8d/

http://support.microsoft.com/kb/324089

dorlack 01-05-2012 08:31 AM

I was sent /RF7800N_NFS?, I was trying it without ? just in case. My goal is to rule out the linux box and point the issue back to the Windows server.

dorlack 01-05-2012 10:00 AM

So any reason why I am unable to get to /mnt/tmp ?

**Permission denied**

This is on client end, correct.

Cedrik 01-05-2012 10:15 AM

Hey, make new account with uid = 4294967294 in linux box :p

dorlack 01-05-2012 11:28 AM

???

kbscores 01-05-2012 11:40 AM

Couple of things -

From looks of it NFS is linux mount point correct? make sure before mounting to do a chmod 777 on that directory. Ultimately filesharing permissions will be handled else where so having it open doesn't matter.

Second - if you are able to mount device than odds are there is a UID/GID issue on windows side. Even though it says device is open to everyone the mount itself is controlled by UID/GID on windows side. So if you keep getting permission denied check permissions on both folder AND verify UID 0 has permission to access device FROM WINDOWS side.

dorlack 01-05-2012 11:58 AM

This is what was given to me.

rfcafs24/RF7800N_NFS?

Server name and mount.

Perhaps I mixed something up?

dorlack 01-05-2012 12:01 PM

Also I am getting permission denied when trying to run chmod 777 on mnt/tmp and /NFS


All times are GMT -5. The time now is 05:33 PM.