hi...
i've kind of setup nfs... but i have some questions/issues.
1) how do i allow the nfs on the client to always be active. currently i've had to do a "mount 192...:/foo/data /data" to be able to share the drive.. i know there's a way to setup the system to have the nfs always setup on boot-up.
2) i add a file to the shared dir from the nfs system. i try to edit it from a client, and i can't. as a client, i can copy the file to my local dir, and edit it.. but as a client, i can't overwrite the file on the nfs share.
any pointers/thoughts would be helpful... i'm missing something in the docs that i've bben looking at.
thanks
-bruce
On Mon, 31 Jul 2006 09:30:53 -0700 bruce bedouglas@earthlink.net wrote:
- how do i allow the nfs on the client to always be active. currently i've
had to do a "mount 192...:/foo/data /data" to be able to share the drive.. i know there's a way to setup the system to have the nfs always setup on boot-up.
Edit /etc/fstab and include the fileserver in that.
Example:
fileserver:/nas/NASDisk-00002/files /mnt/fileserver nfs defaults 0 0
- i add a file to the shared dir from the nfs system. i try to edit it from
a client, and i can't. as a client, i can copy the file to my local dir, and edit it.. but as a client, i can't overwrite the file on the nfs share.
The /etc/exports file on your fileserver needs to have (rw) specified instead of (ro).
hi frank!
i looked in the /etc/exports file.
i've made a number of changes trying to resolve this issue.
/college 192.168.1.*(ro)
i've tried (ro), (rw,ro), (ro,rw), etc...
on my client, i've done a umount/mount after each change. i've also stopped/restarted the nfs before/after each change to the exports file.
on the client, when i try to edit a file, i still get that it's a readonly file...
any thoughts... (i'm running a linux FC3 server, with a FC4 client)
thanks
-----Original Message----- From: Frank Cox [mailto:theatre@sasktel.net] Sent: Monday, July 31, 2006 9:37 AM To: For users of Fedora Core releases Cc: bedouglas@earthlink.net Subject: Re: nfs questions!!!
On Mon, 31 Jul 2006 09:30:53 -0700 bruce bedouglas@earthlink.net wrote:
- how do i allow the nfs on the client to always be active. currently
i've
had to do a "mount 192...:/foo/data /data" to be able to share the drive..
i
know there's a way to setup the system to have the nfs always setup on boot-up.
Edit /etc/fstab and include the fileserver in that.
Example:
fileserver:/nas/NASDisk-00002/files /mnt/fileserver nfs defaults 0 0
- i add a file to the shared dir from the nfs system. i try to edit it
from
a client, and i can't. as a client, i can copy the file to my local dir,
and
edit it.. but as a client, i can't overwrite the file on the nfs share.
The /etc/exports file on your fileserver needs to have (rw) specified instead of (ro).
-- MELVILLE THEATRE ~ Melville Sask ~ http://theatre.sasktelwebsite.net
bruce wrote:
hi frank!
i looked in the /etc/exports file.
i've made a number of changes trying to resolve this issue.
/college 192.168.1.*(ro)
i've tried (ro), (rw,ro), (ro,rw), etc...
Do only (rw). Take out the 'ro'.
on my client, i've done a umount/mount after each change. i've also stopped/restarted the nfs before/after each change to the exports file.
on the client, when i try to edit a file, i still get that it's a readonly file...
any thoughts... (i'm running a linux FC3 server, with a FC4 client)
thanks
Justin Willmert
Do you have a user with the same name and password on both hosts? Does said user have write permissions on the directory? Is this root? Then you need a change to your exports line.
/video 10.10.10.0/24(rw,no_root_squash)
That is the line I use for my mythbox.
hi...
further research hasn't solved the issue.
i have the server nfs /etc/exports /college 192.168.1.*(rw)
i have the client nfs/mount mount -o rw 192.168.1.52:/college /college
when i add a file to the share as client1, the client and the nfs server can edit the file with no problem. the other clients can't!! in fact, the file attributes are changed/set to some very large number...
if i go to the nfs server, and i make the changes to the file (chmod,chgrp,chown) then the settings are somewhat seen by the other clients, and each client can then edit the given files on the nfs share...
i would have thought that there should be a way to set up the nfs, so that client1 can create/add a file, and that client2 can edit the file, and vice versa....
searching via google seems to indicate that this should work, but i can't see how to get it to perform.
thanks
ps. yeah, there are read/write privs on the nfs mount for the clients and yeah, the user is the same on each machine
-----Original Message----- From: Thom Paine [mailto:painethom@gmail.com] Sent: Monday, July 31, 2006 10:49 AM To: bedouglas@earthlink.net; For users of Fedora Core releases Subject: Re: nfs questions!!!
Do you have a user with the same name and password on both hosts? Does said user have write permissions on the directory? Is this root? Then you need a change to your exports line.
/video 10.10.10.0/24(rw,no_root_squash)
That is the line I use for my mythbox.
-- -=/>Thom
On Mon, 31 Jul 2006 11:43:59 -0700 bruce bedouglas@earthlink.net wrote:
further research hasn't solved the issue.
Have you done "exportfs -r" after making changes to the /etc/exports file?
On 7/31/06, bruce bedouglas@earthlink.net wrote:
hi...
further research hasn't solved the issue.
Let me log into my boxes and try a test. I usually have root mount the shares at boot time and I am normally editing files as root when I'm working with the filesystem.
On Mon, 2006-07-31 at 11:43 -0700, bruce wrote:
hi...
further research hasn't solved the issue.
i have the server nfs /etc/exports /college 192.168.1.*(rw)
i have the client nfs/mount mount -o rw 192.168.1.52:/college /college
when i add a file to the share as client1, the client and the nfs server can edit the file with no problem. the other clients can't!! in fact, the file attributes are changed/set to some very large number...
You must be doing something wrong since we do this all the time. Note: 1, Do oyu mean the owner eis a large number = -2 == nobody. That is a problem since that will affect accessing the file. 2. You have nfs and nfslock initscripts running on the server. 3. The mounting should be done via a fstab as type nfs.
Maybe posting you exports file and fstab would help.
if i go to the nfs server, and i make the changes to the file (chmod,chgrp,chown) then the settings are somewhat seen by the other clients, and each client can then edit the given files on the nfs share...
i would have thought that there should be a way to set up the nfs, so that client1 can create/add a file, and that client2 can edit the file, and vice versa....
searching via google seems to indicate that this should work, but i can't see how to get it to perform.
thanks
ps. yeah, there are read/write privs on the nfs mount for the clients and yeah, the user is the same on each machine
-----Original Message----- From: Thom Paine [mailto:painethom@gmail.com] Sent: Monday, July 31, 2006 10:49 AM To: bedouglas@earthlink.net; For users of Fedora Core releases Subject: Re: nfs questions!!!
Do you have a user with the same name and password on both hosts? Does said user have write permissions on the directory? Is this root? Then you need a change to your exports line.
/video 10.10.10.0/24(rw,no_root_squash)
That is the line I use for my mythbox.
-- -=/>Thom
-- ======================================================================= In my experience, if you have to keep the lavatory door shut by extending your left leg, it's modern architecture. -- Nancy Banks Smith ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
On Mon, 2006-07-31 at 10:37 -0700, bruce wrote:
i've tried (ro), (rw,ro), (ro,rw), etc...
"ro" means read-only, "rw" means readable and writable, you'd do one or the other, not both (it's contradictory).
On Mon, 2006-07-31 at 13:48 -0400, Thom Paine wrote:
Do you have a user with the same name and password on both hosts?
That's not how NFS works. You need to have the same user ID (numerical), and that's it. The local box associates a user name and password with local users.
i.e. user 500 is use 500 on both boxes (unless you remap user IDs across NFS). It doesn't matter whether use 500 is john on one and fred on the other. And the passwords aren't compared, either.
If you've set boxes up so that you end up being user 500 on one of them, but 501 on another, you're different users on both. You've either got to do some user ID remapping between boxes through NFS (I've no advice on how to do that to give you), or you change users on one of the boxes to match.
On 8/1/06, Tim ignored_mailbox@yahoo.com.au wrote:
On Mon, 2006-07-31 at 13:48 -0400, Thom Paine wrote:
Do you have a user with the same name and password on both hosts?
That's not how NFS works. You need to have the same user ID (numerical), and that's it. The local box associates a user name and password with local users.
Oh, my bad. I was getting user 500 on both boxes as I'm the only user on both. Thanks for clearing that up. Now I know. I thought it was a user thing.
Thom Paine:
Do you have a user with the same name and password on both hosts?
Tim:
That's not how NFS works. You need to have the same user ID (numerical), and that's it. The local box associates a user name and password with local users.
Thom Paine:
Oh, my bad. I was getting user 500 on both boxes as I'm the only user on both. Thanks for clearing that up. Now I know. I thought it was a user thing.
Samba typically works that way, of going by the usernames being the same. But it doesn't have to, different usernames can be mapped as being the same users between boxes.