Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs: permission denied[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mlebek
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2004
Posts: 125

PostPosted: Thu Jun 28, 2007 6:47 am    Post subject: nfs: permission denied[solved] Reply with quote

Hi,

i tried to share some directories via nfs, but i get allways '192.168.0.44:/opt/ltsp-4.2/i386 failed, reason given by server: permission denied'

/var/log/messages:
Code:
01:06:26 baron mountd[9016]: mount request from unknown host 192.168.0.68 for /opt/ltsp-4.2/i386 (/opt/ltsp-4.2/i386)



cat /etc/hosts
Code:
192.168.0.44    baron
192.168.0.68    ws008



cat /etc/exports
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/opt/ltsp-4.2/i386 /192.168.0.0/255.255.255.0(ro,no_root_squash,no_subtree_check,async)
/var/opt/ltsp/swapfiles  /192.168.0.0/255.255.255.0(rw,no_root_squash,async)




cat /var/lib/nfs/etab
Code:
/var/opt/ltsp/swapfiles /192.168.0.0/255.255.255.0(rw,async,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,anongid=65534)
/opt/ltsp-4.2/i386      /192.168.0.0/255.255.255.0(ro,async,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,anongid=65534)
/tmp    /192.168.0.0/255.255.255.0(ro,async,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,anongid=65534)



Manfred


Last edited by mlebek on Thu Jun 28, 2007 4:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
mlebek
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2004
Posts: 125

PostPosted: Thu Jun 28, 2007 6:56 am    Post subject: Reply with quote

It seems like i have the same problem:

https://forums.gentoo.org/viewtopic-p-4098262.html
Back to top
View user's profile Send private message
mlebek
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2004
Posts: 125

PostPosted: Thu Jun 28, 2007 8:17 am    Post subject: Reply with quote

etc/exports:

Code:
opt/ltsp-4.2/i386 (ro,no_root_squash,async)


is working!
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Thu Jun 28, 2007 3:56 pm    Post subject: Re: nfs: permission denied Reply with quote

mlebek wrote:

cat /etc/exports
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/opt/ltsp-4.2/i386 /192.168.0.0/255.255.255.0(ro,no_root_squash,no_subtree_check,async)
/var/opt/ltsp/swapfiles  /192.168.0.0/255.255.255.0(rw,no_root_squash,async)



I don't believe the IP address is supposed to be prepended with a slash. Did you try removing it?

i.e.
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/opt/ltsp-4.2/i386 192.168.0.0/24(ro,no_root_squash,no_subtree_check,async)
/var/opt/ltsp/swapfiles  192.168.0.0/24(rw,no_root_squash,async)
Back to top
View user's profile Send private message
mlebek
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2004
Posts: 125

PostPosted: Thu Jun 28, 2007 4:37 pm    Post subject: Reply with quote

that was the problem. it happend when copy & paste the lines from a website.
thanks a lot.
Back to top
View user's profile Send private message
RayMoe
n00b
n00b


Joined: 04 Aug 2005
Posts: 7
Location: Istanbul

PostPosted: Sat Jul 07, 2007 10:12 pm    Post subject: NFS Exports Reply with quote

Hi there,

I have the same Problem with permission denied. But my exports looks like this

# /etc/exports: NFS file systems being exported. See exports(5).
*(sync,all_squash)/ *(sync)
/mnt/gamze/Sharry/ *(sync,rw,all_squash,insecure)

I had to add the insecure because I have to connect to it via MAC OS X. I did not work without the insecure. portmap and nfsmount are working.

Thanks,

RayMoe
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum