Results 11 to 12 of 12
Originally Posted by drakebasher
Originally Posted by IsaacKuo
In order to ensure that every machine has the same userids, uid, gid, and passwords, you need to set up yp (yellow ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-27-2005 #11Yeah - here's my quickie guide, you'll probly want to expand this as you go...
Originally Posted by drakebasher
Make sure you have the yp (maybe called ypbind) and ypserv packages installed. ypserv is only needed on the You only needed on the server, dont install that on the clients.
Choose a yp domain name for <your_yp_domainname> in the following. Dont make this the same as your IP domain name.
Edit /etc/yp.conf on every client machine you want to use it on (including the server), put:
at the end.Code:domain <your_yp_domainname> server <servername>
On the server, edit /etc/ypserv.conf and add something like this:
but use the first three parts of your own private IP address range.Code:# Host : Domain : Map : Security # 192.168.2. : <your_yp_domainname> : passwd.byname : port 192.168.2. : <your_yp_domainname> : passwd.byuid : port 192.168.2. : <your_yp_domainname> : passwd : port 192.168.2. : <your_yp_domainname> : group : port # Not everybody should see the shadow passwords, not secure, since # under MSDOG everbody is root and can access ports < 1024 !!! 192.168.2. : <your_yp_domainname> : shadow.byname : port 192.168.2. : <your_yp_domainname> : passwd.adjunct.byname : port
On the server go to /var/yp, and edit the Makefile, take out the maps you dont want to export in 'all' category, mine looks like this:
then do a 'make' in that directory.Code:all: passwd group hosts rpc services netid protocols mail \ # netgrp shadow publickey networks ethers bootparams printcap \ # amd.home auto.master auto.home auto.local passwd.adjunct \ # timezone locale netmasks
Start the ypserv process with:
service ypserv start
service yppasswd start
Still on the server, start the yp client with:
service ypbind start
and test that it's all working with:
ypcat group
ypcat passwd
you should see the maps for groups and passwords.
Go to the client, and start up the ypbind service with:
service ypbind start
and test again. All should now be working. Use yppasswd on any machine to change a user password, and dont forget to add the various yp services to the runlevels of each machine.Linux user #126863 - see http://linuxcounter.net/
- 10-28-2005 #12Linux Newbie
- Join Date
- Nov 2003
- Location
- Maryland
- Posts
- 105
..and a follow up..
I can mount perfectly fine from my Kubuntu box, but i get error -5000 on my OSX computer, I've googled that error and it seems its a permissions/server error
it lies!


Reply With Quote
