This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Creating users and groups


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?


-- 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]