From owner-freebsd-questions Wed Jun 28 8:31:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id 63F2C37BA77 for ; Wed, 28 Jun 2000 08:31:06 -0700 (PDT) (envelope-from gjohnson@nola.srrc.usda.gov) Received: (from glenn@localhost) by symbion.srrc.usda.gov (8.9.3/8.9.3) id KAA63953; Wed, 28 Jun 2000 10:30:00 -0500 (CDT) (envelope-from glenn) From: Glenn Johnson Date: Wed, 28 Jun 2000 10:30:00 -0500 To: Paje da Oca Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Adding users in NIS domain Message-ID: <20000628103000.B63423@node1.cluster.srrc.usda.gov> References: <20000627201335.B424@dialin-client.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000627201335.B424@dialin-client.earthlink.net>; from cristjc@earthlink.net on Tue, Jun 27, 2000 at 08:13:36PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 27, 2000 at 08:13:36PM -0700, Crist J. Clark wrote: > On Tue, Jun 27, 2000 at 10:13:14PM -0300, Paje da Oca wrote: > > > Is there any script or other tool to add users to the master server > > in a NIS domain? (Something as "adduser" for a "normal" machine). Or > > should I hack adduser? man pw(8). There is information about doing this. The -Y option is what you will need but you also need to make sure it knows where master.passwd is, either in /etc or /var/yp for instance. I keep mine in /var/yp so I set up /etc/pw.conf to have the entry "nispasswd /var/yp/master.passwd". You could then do something like "pw useradd [options] -Y" Hope this helps. -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@nola.srrc.usda.gov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message