delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Info: | This message was accepted for relay by |
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication | |
X-Trace: | UmFuZG9tSVY41necmjJR8q70iJquj20JULScPJn1rQgDo9oTA6Js5touCK9zK5Tt |
Message-ID: | <3EF7A5E9.8020101@cygwin.com> |
Date: | Mon, 23 Jun 2003 21:14:17 -0400 |
From: | Larry Hall <cygwin-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | FAQ Alert - Re: Creating users and groups |
References: | <3EF7A1B9 DOT 1090909 AT yahoo DOT com> <Pine DOT CYG DOT 4 DOT 55 DOT 0306240200301 DOT 3032 AT ellixia> |
In-Reply-To: | <Pine.CYG.4.55.0306240200301.3032@ellixia> |
Elfyn McBratney wrote: > 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'. I think we've heard this question enough to add it to the FAQ. David, can you do so on your next FAQ sweep? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |