nfs permission denied failure


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers nfs permission denied failure
# 1  
Old 12-04-2009
Question nfs permission denied failure

I think I must be drain bamaged...

I'm just trying to export an NFS share and mount it on a client. Should be really easy but I'm failing!

Here's the set up:

Server:
OS: Centos 5.3
Name: fileprint-0 (aliases fp00, fs00)
Exported directory: /home/ESE

Client:
OS: Centos 5.3

Error:
mount: fs00:ESE failed, reason given by server: Permission denied

DETAILS:

1. The various nfs daemons are running on the server:
Code:
[root@fileprint-0 ~]# service nfs status
rpc.mountd (pid 18040) is running...
nfsd (pid 18037 18036 18035 18034 18033 18032 18031 18030) is running...
rpc.rquotad (pid 18025) is running...

2. For the moment the firewall has been completely disabled on the server:
Code:
[root@fileprint-0 ~]# service iptables status
Firewall is stopped.

3. The directory has been added to /etc/exports, exportfs -ra has been run, and there are no entries in /etc/hosts.deny:
Code:
[root@fileprint-0 ~]# cat /etc/exports
/home/ESE       *(ro,sync)      #Site Engineer tools

4. Owner and group for the directory have been set to nsfbody (the users on the clients will always be running as root):
Code:
[root@fileprint-0 ~]# ls -dal /home/ESE
drwxr-xr-x 3 nfsnobody nfsnobody 4096 Dec  4 05:01 /home/ESE

5. The clients are able to resolve and ping the server as fs00:
Code:
[root@directory-0 named]# host fs00
fs00.lab-0.agilulf.local is an alias for fileprint-0.lab-0.agilulf.local.
fileprint-0.lab-0.agilulf.local has address 10.42.0.24
[root@directory-0 named]# ping fs00
PING fileprint-0.lab-0.agilulf.local (10.42.0.24) 56(84) bytes of data.
64 bytes from fileprint-0.lab-0.agilulf.local (10.42.0.24): icmp_seq=1 ttl=64 time=0.715 ms
64 bytes from fileprint-0.lab-0.agilulf.local (10.42.0.24): icmp_seq=2 ttl=64 time=0.402 ms

--- fileprint-0.lab-0.agilulf.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1099ms
rtt min/avg/max/mdev = 0.402/0.558/0.715/0.158 ms

6. The local mount point on the client exists:
Code:
[root@directory-0 named]# ls -dal /mnt/ESE
drwxr-xr-x 2 root root 4096 Oct 27 16:04 /mnt/ESE

7. But attempts to mount the directory fail:
Code:
[root@directory-0 named]# mount -t nfs fs00:ESE /mnt/ESE
mount: fs00:ESE failed, reason given by server: Permission denied

8. I've tried setting no_squash but without any more success.

Anybody see what I am doing wrong?

Last edited by texaganian; 12-04-2009 at 12:30 PM.. Reason: additional info
# 2  
Old 12-04-2009
Quote:
(the users on the clients will always be running as root):
That is your issue...
Remember? Unless you have configured it to do so, NFS is unavailable to root users...

---------- Post updated at 17:26 ---------- Previous update was at 17:21 ----------

And the syntax:
Code:
# mount -t nfs fs00:ESE /mnt/ESE

Are you sure it is not
Code:
# mount -t nfs fs00:/home/ESE /mnt/ESE

# 3  
Old 12-04-2009
Data

Quote:
Originally Posted by vbe
That is your issue...
Remember? Unless you have configured it to do so, NFS is unavailable to root users...
I guess I need a little more explanation.

I thought the reason for changing the owner and group for the directory to nfsnobody was so that when root got mapped to nfsnobody (because auto_squash has not been disabled) it would all work.
# 4  
Old 12-04-2009
Look at the addendum of my previous post...
# 5  
Old 12-04-2009
Quote:
Originally Posted by vbe
That is your issue...
Remember? Unless you have configured it to do so, NFS is unavailable to root users...

---------- Post updated at 17:26 ---------- Previous update was at 17:21 ----------

And the syntax:
Code:
# mount -t nfs fs00:ESE /mnt/ESE

Are you sure it is not
Code:
# mount -t nfs fs00:/home/ESE /mnt/ESE

/home is not exported. Only /home/ESE is exported. So I think the mount command is correct.

Code:
[root@fileprint-0 ~]# cat /etc/exports
/home/ESE       *(ro,sync)      #Site Engineer tools

# 6  
Old 12-07-2009
Resolved. Doh!

I just foobarred the mount command (left out the leading slash) and my eyes were refusing to see it. Became obvious instantly when I finally remembered to tail /var/log/messages.

Doh!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

2. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

3. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

4. Solaris

NFS in Solaris 9 - Permission denied

nfs mount: Permission denied Guy's in Solaris 9 I'm trying to mount the below mount point as nfs in clinet mount -F nfs -o rw 171.13.10.20:/shared /app but I'm getting the below message !!! bash-2.05# mount -F nfs -o rw 171.13.10.20:/shared /app nfs mount:... (2 Replies)
Discussion started by: Mr.AIX
2 Replies

5. UNIX for Dummies Questions & Answers

Permission Denied creating file under nfs mount

I have two servers, 82 and 70. My exports file on 82 reads / ...70(rw) on 70 I have a mountpoint called mnt_for_82 I execute on 70 mount -t nfs -o rw ...82:/ mnt_for_82 I go to server 70 and indeed can read and travers the mounted subdirectories. However, I try... (0 Replies)
Discussion started by: blaine.miller
0 Replies

6. Solaris

Problem with nfs sharing, permission denied for writing.

Hi I have a problem with NFS sharing on solaris 10, the problem simply with write permission, after do the following command, the folder still not writable from machine 2 : on machine 1 (10.10.10.32) : share -F nfs -o rw /u01/portalrepository/ on machine 2 (10.10.10.31) : mount -F nfs... (35 Replies)
Discussion started by: Al-Mothafar
35 Replies

7. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies

8. UNIX for Dummies Questions & Answers

NFS Mount: Permission Denied

Hi, - I have two solaris 10 servers. One is running nfs server (let's call it server-1) and has a share set through /etc/dfs/dfstab file: share -F nfs /opt/SHARE (where SHARE directory contains sub-items that I want to share) - On server-1, I have started the nfs server service and have... (2 Replies)
Discussion started by: jackola
2 Replies

9. UNIX for Dummies Questions & Answers

Permission Denied

I just started computer science at UW Milwaukee. When I access the university Solaris system from PuTTY, I get permission denied when I try to access the file I wrote. Now I really have no idea what I'm doing, I just don't understand why I get permission denied in my won directory. Thank You ... (0 Replies)
Discussion started by: howeezy
0 Replies

10. UNIX for Dummies Questions & Answers

Permission Denied using VI on my NFS

Hi Friends, I have problem using VI on my NFS as a user. But root does not. When I tried to vi .cshrc, I have this error msg pops out jennifer_hostname > vi .cshrc "/var/tmp/Ex???? : Permission Denied" jennifer_hostname > Does any of you encounter this problem before or... (4 Replies)
Discussion started by: jennifer
4 Replies
Login or Register to Ask a Question