LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2006, 04:41 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
NFS Woes: Client denied permission


I'm trying out NFS and I manage to link a client and server.. without much option.

I was playing around with hosts.deny, hosts.allow etc... and suddenly it can't work.

I've cleared all entries in hosts.deny and hosts.allow, i have set /etc/exports to

/mnt/mydir *(rw)

I've stop iptables...

it still show me "reason given by server: permission denied"

Am quite at a lost.. could i have triggered some security functions without knowing...?

I'm trying to mount/connect using root.

please advice
 
Old 03-10-2006, 11:03 AM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Try disabling SELinux. If your problem goes away, you can either leave it disabled or configure it properly for nfs (man nfs_selinux).
 
Old 03-13-2006, 04:45 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
SELinux is disabled already... iptables too

its weird.. after I played with hosts.deny and hosts.allow its not working now.. always prompt the following

Quote:
mount: 192.168.1.246:/files/ failed, reason given by server: Permission denied
I used the following to mount from the client
Quote:
mount -t nfs -o rsize=1024,wsize=1024 192.168.1.246:/files/ /home/user/remotefiles/ -v

server side, in /etc/exports, the entry is as follows:
Quote:
/files 192.168.1.243(rw)
hosts.deny and hosts.allow is cleared up already....

but when ever i run nfs it will prompt this, i wonder if it affects...
Quote:
Starting NFS services: exportfs: /etc/exports [1]: No 'sync' or 'async' option specified for export "192.168.1.243:/files".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions

But the service still loads normally...

anyone?
 
Old 03-13-2006, 05:10 AM   #4
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Weird...

I just tried mounting with

Quote:
mount 192.168.1.243:/files /home/user/remotesite
it works...


as mentioned earlier
Quote:
mount -t nfs -o rsize=1024,wsize=1024 192.168.1.243:/files/ /home/user/remotefiles/
the above didn't work :s

weird......
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied on client when running install script residing on NFS server dstotz Linux - Newbie 2 12-11-2004 02:10 PM
PLEASE help, NFS (permission denied) Nappa Slackware 15 01-13-2004 07:17 PM
NFS permission denied somesh Linux - Software 2 07-22-2003 02:42 PM
NFS - Permission Denied... 15788 Linux - Networking 9 04-06-2003 09:43 AM
Permission Denied NFS graystarr Linux - Networking 9 07-08-2002 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration