From owner-freebsd-questions Mon Feb 11 8:41:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id CBCF837B404 for ; Mon, 11 Feb 2002 08:41:45 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.6/8.11.6) id g1BGfdq75362; Mon, 11 Feb 2002 10:41:39 -0600 (CST) (envelope-from dan) Date: Mon, 11 Feb 2002 10:41:39 -0600 From: Dan Nelson To: Manessiwths Giwrgos Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD NIS Server... Message-ID: <20020211164138.GR44170@dan.emsphone.com> References: <20020211050836.C17689-100000@godzilla.edu.uoc.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020211050836.C17689-100000@godzilla.edu.uoc.gr> User-Agent: Mutt/1.3.27i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error 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 In the last episode (Feb 11), Manessiwths Giwrgos said: > Hello, > > I am new to FreeBSD and I have the following question: > > I am trying to set a FreeBSD 4.5 to act as a NIS server and I followed the > directions from the Handbook. The only thing that I can't understand is > how the file /var/yp/master.passwd will be updated every time I add a user > to my NIS master server. I noticed that I can change the location in the > Makefile but according to the Handbook this is not recomended. Does this > mean that I have to copy /etc/master.passwd to /var/yp/master.passwd (and > delete the nologin user accounts) every time I add a user? Or do I just > point Makefile to use /etc/master.passwd and everything is fine? According to /var/yp/Makefile: # seperate from your NIS server's actual configuration files. Note that the # NIS passwd and master.passwd files are stored in /var/yp: the server's # real password database is not used by default. However, you may use # the real /etc/passwd and /etc/master.passwd files by: # # # - invoking yppasswdd with `-t /etc/master.passwd' (yppasswdd will do a # 'pwd_mkdb' as needed if /etc/master.passwd is thus specified). # - Specifying the location of the master.passwd file using the # MASTER_PASSWD variable, i.e.: # # # make MASTER_PASSWD=/path/to/some/other/master.passwd # # - (optionally): editing this Makefile to change the default location. If the Handbook just says "Don't do it" without giving an explanation, I'd say "Ignore the Handbook" :) -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message