From owner-freebsd-questions Wed Mar 12 23:45:38 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF3E737B405 for ; Wed, 12 Mar 2003 23:45:35 -0800 (PST) Received: from its-mu-earth.its.rmit.edu.au (its-mu-earth.its.rmit.edu.au [131.170.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B559343FEA for ; Wed, 12 Mar 2003 23:45:33 -0800 (PST) (envelope-from Neeraj.Arora@ems.rmit.edu.au) Received: from ems.rmit.edu.au (ems.rmit.edu.au [131.170.10.112]) by its-mu-earth.its.rmit.edu.au (8.10.1/8.10.1/ANTI-SPAM/ANTI-RELAY/EARTH) with ESMTP id h2D7jVV05954 for ; Thu, 13 Mar 2003 18:45:31 +1100 (EST) Received: from INET1-MTA by ems.rmit.edu.au with Novell_GroupWise; Thu, 13 Mar 2003 18:45:31 +1100 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.3 Beta Date: Thu, 13 Mar 2003 18:45:19 +1100 From: "Neeraj Arora" To: Cc: Subject: Re: NIS not working Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I setup nis recently, and I find no mistake in your procedure. But still, = I list all my steps so that you may find some difference if there is any. As superuser: 1. Setup the server by enabling entries in rc.conf, set the domain to = nis-domain. 2. Copied master.passwd from /etc to /var/yp and deleted all the sensitive = entries. 3. started the rpc service and bind the nis daemon to that. 4. ran ypinit -m nis-domain and it built without any errors. 5. On the clients /etc/rc.conf enabled nis client settings and rpc = settings. 6. started rpc and ypbind on the clients. 7. edited master.passwd using vipw and added the entry +::::::::: (cant = remember the number of `:') and edited the /etc/group file added +:*:: at = the end. 8. confirmed using ypcat passwd as a normal user and ypcat master.passwd = as superuser. results positive. On the nis-server 9. To add a user, used pw useradd username and pw derives settings from, I = think, /etc/pw.conf 10. cd /var/yp, deleted the passwd file. And ran make again. if pedantic = delete passwd file and run ypinit -m nis-domain again and dont forget to = say `y' for permission to delete the nis-domain directory. 11. and all is working... 12. tried to configure a non-freebsd system, debian gnu/linux to be = particular to run as an nis client 13. done after asking a question on this mailing list and receiving very = helpful replies...:) 14. configuring many other services...:) Regards, Neeraj >>> "W. J. Williams" 03/12/03 21:43 PM >>> hi hope someone knows the answer to this riddle...I am trying to get NIS up and running. 1. one master, no slave...domain name is lab-nis-domain 2. Master rc.conf file contains enabling commands to start nis server as well as nis_yppasswdd. The build of the /var/yp/lab-nis-domain indicated "built with no errors" 3. client machine rc.confs contain domain name, nis_client_enable, rpcbind_enable. 4. when I run ypcat passwd from any client machine I get a list of avail passwords from the master domain... all looked good... 5. created a new user on master, ran make lab-nis-domain and it said "domain already current"...so I copied the updated master.passwd file to /var/yp and ran make again...still same message. 6. as last resort I ran ypinit -m again to rebuild the entire domain..then ran ypcat passwd from client machine and was able to see the new account. 7. MY PROBLEM: I can't log into the client machine using the new account...I have added the +::::::::: string to master.passwd and +:*:: string to group file...but still no work. any ideas? Will To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message