From owner-freebsd-questions Mon Jan 21 20:19:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by hub.freebsd.org (Postfix) with ESMTP id 477C937B400 for ; Mon, 21 Jan 2002 20:19:35 -0800 (PST) Received: from scaryg.shacknet.nu ([64.231.135.73]) by tomts10-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020122041934.KQBS20760.tomts10-srv.bellnexxia.net@scaryg.shacknet.nu>; Mon, 21 Jan 2002 23:19:34 -0500 Received: from localhost ([::1] helo=scaryg.shacknet.nu) by scaryg.shacknet.nu with smtp (Exim 3.33 #1) id 16SsQ5-0007r4-00; Mon, 21 Jan 2002 23:20:25 -0500 Date: Mon, 21 Jan 2002 23:20:24 -0500 From: ScaryG To: "Philip M. Gollucci" Cc: freymann@eagle.ca, barbish@a1poweruser.com, questions@FreeBSD.ORG Subject: Re: How to adduser from script? Message-Id: <20020121232024.3534c900.freymann@scaryg.shacknet.nu> In-Reply-To: References: <3C4BEF68.32535.78858E@localhost> X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Mon, 21 Jan 2002 19:25:52 -0500 (EST) "Philip M. Gollucci" wrote: > I don't know if this is a good idea, but I have a web based login > system. It creates the users in a MySQL database. This is all fine and > good, but I want to also add them as system users in master.passwd . > It is my understanding that I need to do some kind of setuid script like > the one below. Anyone how or where to look. I write out the info to a file, safely tucked away some where, and schedule a cron job (as root) to run every so often and pick up the waiting data and create the user. How often the cron job runs is up to you. And security of the file should be handled carefully as well. gf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message