Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 24 Jun 2003 02:02:18 +0100 From: Elfyn McBratney X-X-Sender: elfyn AT ellixia Reply-To: cygwin AT cygwin DOT com To: Eric Benson cc: cygwin AT cygwin DOT com Subject: Re: Creating users and groups In-Reply-To: <3EF7A1B9.1090909@yahoo.com> Message-ID: References: <3EF7A1B9 DOT 1090909 AT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 23 Jun 2003, Eric Benson wrote: > I'm working on a set of daemons that should run under their own user and > group id. I'd like to write a shell script that will create this user > and group. I'm using useradd and groupadd on Red Hat Linux, but those > don't seem to exist on Cygwin. Is there a recommended way to handle this > situation on Cygwin? I don't need setuid bits on files, but I want to be > able to chmod and chgrp files and su to the userid so that these > processes belong to the right user. I confess I don't really know much > about Windows. My programs pretend to live in a wholly Unix world. I > would hate to have to use a manual process in Windows to create this > user. Isn't there some way of doing this from a shell script? You can use the `net' command on NT/200[03]/XP to create windows accounts and then `mkpasswd' and/or `mkgroup'. Elfyn -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/