From owner-freebsd-questions@FreeBSD.ORG Fri Jul 29 01:34:18 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 C44E716A41F for ; Fri, 29 Jul 2005 01:34:18 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D6B043D45 for ; Fri, 29 Jul 2005 01:34:18 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j6T1YFIv069226; Thu, 28 Jul 2005 20:34:15 -0500 (CDT) (envelope-from dan) Date: Thu, 28 Jul 2005 20:34:15 -0500 From: Dan Nelson To: Xu Qiang Message-ID: <20050729013415.GA33847@dan.emsphone.com> References: <20050729005037.0771E1D938@imss.sgp.fujixerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050729005037.0771E1D938@imss.sgp.fujixerox.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: groupadd/useradd in FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2005 01:34:18 -0000 In the last episode (Jul 29), Xu Qiang said: > Dan Nelson wrote: > > No-one usually logs in as the mysql user, so you don't need to set > > one. Mysqld will automatically setuid() itself to the "mysql" user > > when it starts up. > > Suppose it is a general scenario, not restricted to MySQL setup. How > to set up a user's password after creating his/her uid/username? You can use the passwd command as root, or if you want to set it from a script, you can use the -h option to "pw usermod". -- Dan Nelson dnelson@allantgroup.com