Date: Mon, 21 Jan 2002 23:20:24 -0500 From: ScaryG <freymann@scaryg.shacknet.nu> To: "Philip M. Gollucci" <gollucci@wam.umd.edu> 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: <Pine.GSO.4.21.0201211924340.19011-100000@rac4.wam.umd.edu> References: <3C4BEF68.32535.78858E@localhost> <Pine.GSO.4.21.0201211924340.19011-100000@rac4.wam.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Jan 2002 19:25:52 -0500 (EST) "Philip M. Gollucci" <gollucci@wam.umd.edu> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020121232024.3534c900.freymann>