[SLE] Question: NFS for beginners
Seems I'm living a life of balance... One problem solved and posted for everyone to benefit from, another question pops up and I need everyone's help. :-) I've got home directories on my files server. I'm running Samba, and all my windows boxes get their home directories assigned to /pchome/%S (ie, /pchome/username) to keep them separate from their linux home directory. I'd like to set it up so that all my linux workstations get their home directories from the file server. I'd like the file server to be the only repository of login authentications (ie, the only holder of /etc/passwd and /etc/shadow). I've got about 6 different user accounts that have (unfortunately), different user id's. Ie, "agtiger" might be user id 500 on one box, and userid "503" on another. I didn't add them in the same order. I know I saw someone else recently post that they did this kind of nfs home directory sharing, and that they wished they'd done it much sooner. Anyone willing to post their NFS configuration files so I can get a jumpstart and don't have to tackle this with "trial-and-error (mostly error)"? ;-) Argentium -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Tue, 11 Apr 2000, Argentium G. Tiger wrote:
I've got about 6 different user accounts that have (unfortunately), different user id's. Ie, "agtiger" might be user id 500 on one box, and userid "503" on another. I didn't add them in the same order.
Anyone willing to post their NFS configuration files so I can get a jumpstart and don't have to tackle this with "trial-and-error (mostly error)"? ;-)
/etc/exports # See exports(5) for a description. # This file contains a list of all directories exported to other computers. # It is used by rpc.nfsd and rpc.mountd. /usr/local/httpd 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /home/dmgrover 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /home/dump 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /etc/nfs.map # nfs mapping # remote local uid 1000 500 gid 100 100 Static mapping like this works OK for a few user names. I understand there's a way to synchronize UIDs and GIDs automagically, but I didn't need to go that far. this maps UID 1000.100 on the client machine to 500.100 on the server. -- Sturgeon's Law: 90% of everything is crud. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 10:18 PM 04/11/00 -0500, NtF wrote:
/etc/exports /usr/local/httpd 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /home/dmgrover 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /home/dump 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map)
I'm a bit confused. What's new. I bought a second computer and put SuSE6.4 on it yesterday. What I'd really like is a way to make the new computer just like the old one. But I'll settle for just using NSF to copy files over. What I don't clearly understand is 1) is yp (NIS?) required, or is that only for unified login? That is, is NIS required for NFS? 2) if NIS is required, how do I determine who the server is? I'm unclear on how the settings differ for each (client and server) machine. I assume I can set up NIS all in yast. Thanks, Bill Moseley mailto:moseley@hank.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
NSF and NIS(eg. YP) are two separate things. You do not need to configure NIS for NSF. The main thing you need to be concerned with is that your user ids on both your systems are consistent. On 12 Apr 2000, at 8:12, Bill Moseley wrote:
At 10:18 PM 04/11/00 -0500, NtF wrote:
/etc/exports /usr/local/httpd 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /home/dmgrover 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map) /home/dump 192.168.0.5(rw,no_root_squash,map_static=/etc/nfs.map)
I'm a bit confused. What's new. I bought a second computer and put SuSE6.4 on it yesterday. What I'd really like is a way to make the new computer just like the old one. But I'll settle for just using NSF to copy files over.
What I don't clearly understand is
1) is yp (NIS?) required, or is that only for unified login? That is, is NIS required for NFS?
2) if NIS is required, how do I determine who the server is? I'm unclear on how the settings differ for each (client and server) machine. I assume I can set up NIS all in yast.
Thanks,
Bill Moseley mailto:moseley@hank.org
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- Jerry Feldman Contractor, eInfrastructure Partner Engineering 508-467-4315 http://www.testdrive.compaq.com/linux/ Compaq Computer Corp. 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 22:18 04/11/2000 -0500, NtF
/etc/exports
[ Rest of example snipped for brevity ] Hey, thanks. :-) That gives me a core example to work from when reading the documentation - exactly what I needed. I agree, the static mapping doesn't seem to be too much of a pain in the butt where only a few userid's are concerned. Just for fun, and because I love thinking about future expandibility, what if I had a few thousand userid's to manage; is there a way to match based on the username rather than the userid? Argentium -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Wed, 12 Apr 2000, Argentium G. Tiger wrote:
Hey, thanks. :-) That gives me a core example to work from when reading the documentation - exactly what I needed.
Happy I could help.
what if I had a few thousand userid's to manage; is there a way to match based on the username rather than the userid?
As I understand it, yes, but not from personal knowledge. The picture I have is that static mapping works for a few users, running ugidd for a few more, and NIS for many, many users. Or something like that... -- If God wanted us to be brave, why did he give us legs? -- Marvin Kitman -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
I know I saw someone else recently post that they did this kind of nfs home directory sharing, and that they wished they'd done it much sooner.
That was me. Now I wish I hadn't done it at all. I had problems with Staroffice which I managed to work around. I had problems with Wordperfect which I didn't manage to work around. Then the NFS went loopy (it seemed to be the client end rather than the server) which caused the client end machine to slow down to a crawl, eventually leading to a hard reboot. That was enough of that. I backed out what I'd done and will try it again when I have a 2.4 kernel with it's improved NFS support. As someone said, NFS on Linux sucks at the moment. My 24 hour experience seemed to bear this out... -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 08:48 04/12/2000 +0100, Derek Fountain wrote: [ NFS ]
That was me. Now I wish I hadn't done it at all.
<rest of tale snipped> Thanks for posting the results of your NFS experimentation. I think I'll still proceed, only now I know to proceed with non-critical shares _first_ before jumping in with both feet (probably a wise idea in any event). I wouldn't want to see this happen with a home directory share; that could get ugly _fast_.
That was enough of that. I backed out what I'd done and will try it again when I have a 2.4 kernel with it's improved NFS support.
Hopefully that won't be too far away, since we're up to 2.3.99 pre 5. :-) -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
"Argentium G. Tiger" wrote:
Seems I'm living a life of balance... One problem solved and posted for everyone to benefit from, another question pops up and I need everyone's help. :-)
That's what make Linux fun, isn't it? ;-)
I've got home directories on my files server.
I'm running Samba, and all my windows boxes get their home directories assigned to /pchome/%S (ie, /pchome/username) to keep them separate from their linux home directory.
I'd like to set it up so that all my linux workstations get their home directories from the file server. I'd like the file server to be the only repository of login authentications (ie, the only holder of /etc/passwd and /etc/shadow).
I've got about 6 different user accounts that have (unfortunately), different user id's. Ie, "agtiger" might be user id 500 on one box, and userid "503" on another. I didn't add them in the same order.
For this you'll probably need to set up NIS/YP. This would be a great time to get stuck into /usr/doc/howto/en/NIS-HOWTO.gz - have fun!!!
I know I saw someone else recently post that they did this kind of nfs home directory sharing, and that they wished they'd done it much sooner.
Anyone willing to post their NFS configuration files so I can get a jumpstart and don't have to tackle this with "trial-and-error (mostly error)"? ;-)
I set up a couple of NFS server/clients a couple of weeks ago for the first time. I didn't find it at all complicated, but then again it was a reasonably simple configuration that I was dealing with. All you really need to do is edit the /etc/exports file as appropriate (see 'man exports' for help with this) and then restart the NFS server with the command 'rcnfsserver restart'. All this has to be done as root, of course. This is where Linux gets really fun... Chris -- Apologies to everyone who has been waiting for replies off me over the past few weeks - I've been away from my computer. I'll try to catch up with my email over the coming days, but don't be surprised if you get a reply in a month's time... __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (6)
-
agtiger@coolnet.net
-
chris.reeves@iname.com
-
fountai@hursley.ibm.com
-
Gerry.Feldman@compaq.com
-
moseley@hank.org
-
naurgrim@karn.org