Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS For root only?
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
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Wed Nov 26, 2003 1:14 am    Post subject: NFS For root only? Reply with quote

I just setup NFS on my desktop, gentoo fully updated, so I can can connect/serve to my laptop and my dads computer, both redhat 9. On all of the computers when accessing an NFS share on my desktop only root can get to them. When my laptop shares a dir my dads computer can acess it fine(all users have rw) but on my desktop only root can get to it. It also seems that when transfering a large amount of files(around 200 megs) in the middle of transfering it just stops.

This is my /etc/exports file
/path/to/dir 192.168.1.10*(rw,sync,no_wdelay,no_root_squash)

Can someone please help me?

Thanks
nuke
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Wed Nov 26, 2003 9:38 am    Post subject: Reply with quote

I don't know if this has any bearing on what you're seeing but according to the man page only names can have wildcards.

How are you trying to mount the shares?

What do you see in the logs?

If you have them setup in fstab, post the two fstab files.
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Fri Nov 28, 2003 5:01 am    Post subject: Reply with quote

/etc/exports is the same in both redhat machines so unless redhat does something it wouldnt be that. The way im mounting the shares is mount 192.168.1.100:/path/to/share /mnt/nuke. What log file would you like me to post? I dont have anything setup in my fstab for it should I?
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Nov 28, 2003 9:54 am    Post subject: Reply with quote

Do you have permission as a user in /mnt/nuke and /mnt? I'd suspect you don't but you could have changed that. Try mkdir ~/nuke then mount 192.168.1.100:/path/to/share ~/nuke as a user to see if that works.
Back to top
View user's profile Send private message
zeruel
n00b
n00b


Joined: 05 Mar 2003
Posts: 28
Location: Scotland

PostPosted: Fri Nov 28, 2003 12:18 pm    Post subject: Reply with quote

try
Code:

/path/to/dir             192.168.1.0/24(rw,sync,no_root_squash)

its what i use and it works perfect.

im not totaly sure how all this /24 netmask think works (if anyone wants to explain in simple terms feel free :), but i know it means anything that starts 192.168.1 will have access.

also make sure on the other machine you have 'user' in the fstab entry

eg.
Code:

192.168.1.whatever:/path/to/dir   /mountpoint   nfs   rw,hard,intr,user,noauto   0 0

_________________
Zeruel
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Nov 28, 2003 12:33 pm    Post subject: Reply with quote

The /24 part works as follows: You have 8 bits on each segment of the ip address for a total of 4x8=32. The netmask tells you which part of the ip address is the network and which part the host. So, if you say /24 then you're saying that the first 24 bits are network and the rest host, i.e., the first 3 numbers are the network. In your case that's 192.168.1 The rest is the host (.1 to .255). The most common netmask is /24 (or 255.255.255.0, identical to /24) but you can have others such as /28, /8 (for 10.0.0.0 style networks).
Back to top
View user's profile Send private message
zeruel
n00b
n00b


Joined: 05 Mar 2003
Posts: 28
Location: Scotland

PostPosted: Fri Nov 28, 2003 12:36 pm    Post subject: Reply with quote

thanks, makes sence now :)
_________________
Zeruel
Back to top
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Fri Nov 28, 2003 11:48 pm    Post subject: Reply with quote

i don't like that wildcard either, but WTH, I never used NFS in my life
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Sun Nov 30, 2003 12:23 am    Post subject: Reply with quote

For some reason none of that worked. I looked on my fstab in redhat and there nothing for nfs. Whats going on???
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