LinuxQuestions.org
Review your favorite Linux distribution.
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 11-05-2005, 09:16 PM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
NFS directory access problem


i'm testing NFS server configuration on my laptop. i'm going to list all i did just to give you an idea about the settings then i will mention the problem.

this is what is listed in /etc/exports :
/wael 192.168.2.2(rw)

this is what is listed in hosts.allow:
ALL=ALL

this is what is listed in hosts.deny:

portmap=ALL ( i didn't understand this very well , if you can explain this for me i will appriciate it )

after that i issues the command : exportfs -ra

then i did the following on the NFS server :

[root@FEDORA ~]# mount 192.168.2.2:/wael /nfs
[root@FEDORA ~]# cd /nfs
bash: cd: /nfs: Permission denied
[root@FEDORA ~]# umount /nfs
[root@FEDORA ~]# cd /nfs
[root@FEDORA nfs]#

as you see , it looks like that i'm having a security issue her. and you can notice that i can access /nfs localy when /wael is not monted to it.

Note that i'm using the NSF server as a client at the same time. i don't have another UNIX like machine for now so i have to test it on the same server.

i'm just got the information for this setup from : http://nfs.sourceforge.net/nfs-howto...ml#SERVERINTRO

i don't know what exactly i'm doing wronge ... so please help

thanks
 
Old 11-05-2005, 09:38 PM   #2
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
first check it

#ls -l /wael

rw---------

then its permission problem
so use this command for permissions


#chmod 777 /wael

#mount -t nfs 192.168.2.2:/wael /mnt

#cd /mnt
#ls -l


ok
take care
bye
 
Old 11-05-2005, 10:25 PM   #3
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
thanks... a lot

it worked .....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NFS Access Problem sroyc Linux - Networking 5 01-25-2008 12:41 PM
NFS problem - no write access? aaronfg Linux - Newbie 3 12-22-2004 05:52 AM
nfs(nfs(directory)) = null ? bdp Linux - General 2 03-13-2004 03:31 PM
NFS Share access problem from Windows Help!!! Sabeer Linux - Networking 1 07-08-2003 08:59 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration