View previous topic :: View next topic |
Author |
Message |
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Wed Nov 26, 2003 1:14 am Post subject: NFS For root only? |
|
|
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 |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Wed Nov 26, 2003 9:38 am Post subject: |
|
|
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 |
|
|
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Fri Nov 28, 2003 5:01 am Post subject: |
|
|
/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 |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Fri Nov 28, 2003 9:54 am Post subject: |
|
|
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 |
|
|
zeruel n00b
Joined: 05 Mar 2003 Posts: 28 Location: Scotland
|
Posted: Fri Nov 28, 2003 12:18 pm Post subject: |
|
|
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 |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Fri Nov 28, 2003 12:33 pm Post subject: |
|
|
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 |
|
|
zeruel n00b
Joined: 05 Mar 2003 Posts: 28 Location: Scotland
|
Posted: Fri Nov 28, 2003 12:36 pm Post subject: |
|
|
thanks, makes sence now _________________ Zeruel |
|
Back to top |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
|
Back to top |
|
|
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Sun Nov 30, 2003 12:23 am Post subject: |
|
|
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 |
|
|
|