X-Spam-Check-By: sourceware.org Date: Thu, 22 Dec 2005 16:46:45 +0000 From: Owen Rees To: cygwin Subject: Re: mkpasswd group Message-ID: <7CF7D39AD63139D29CAA8BF6@rees-o-3.labs.hpl.hp.com> In-Reply-To: <20051222153134.29778.qmail@web81310.mail.mud.yahoo.com> References: <20051222153134 DOT 29778 DOT qmail AT web81310 DOT mail DOT mud DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-HPL-MailScanner-Information: Please contact the Helpdesk for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-2.132, required 5, autolearn=not spam, AWL 0.47, BAYES_00 -2.60) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 --On 22 December 2005 07:31 -0800 Mike Blanco wrote: > I have run the commands as specified but each time I > open the console window again I get the same message. > I have researched this mailing list as well as google > and found similiar listings but was unable to find > resolutions to this issue. Here is something that should be equivalent to what eventually worked for me running cygwin on XP Pro in an environment where the domain structure is non-trivial and the domains are large. mkgroup -l -d > /etc/group mkpasswd -l > /etc/passwd mkpasswd -u "$USERNAME" -d "$USERDOMAIN" >> /etc/passwd The 'mkgroup' creates a group file containing local groups and some groups from some domain that seems to be appropriate in this context. The first 'mkpasswd' creates a passwd file containing local accounts. The second 'mkpasswd' creates an entry for my domain account and appends it to the passwd file. At least in my case, the group id generated in this step matches the right group entry generated by the call of 'mkgroup'. In my case, using 'mkpasswd -d "$USERDOMAIN"' would have generated tens of thousands of entries and taken rather a long time so the use of -u was rather important. I also had to specify the domain explicitly, the one that is used if I just use -d is not the domain that contains my account. -- Owen Rees Hewlett Packard Laboratories, Bristol, UK -- 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/