X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 7 Mar 2008 16:14:20 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: same user and group Message-ID: <20080307151420.GA30960@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <964808 DOT 76469 DOT qm AT web94902 DOT mail DOT in2 DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <964808.76469.qm@web94902.mail.in2.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 Mar 7 20:21, Jaspreet Singh wrote: > hi, > > i am using cygwin on windows xp pro. can any body have idea how to create same user and group with same name like bin Windows doesn't allow users and groups with the same name. Cygwin does in a virtual kind of way. For instance, create a user "bin" and a group "bin-grp". Let's assume they have the following SIDs: S-1-5-21-9-8-7-1011 user "bin" S-1-5-21-9-8-7-1012 group "bin-grp" Create passwd and group entries: $ mkpasswd -l -u bin >> /etc/passwd $ grep '^bin:' /etc/passwd bin:unused_by_nt/2000/xp:1011:513:U-YOUR_PC\bin,S-1-5-21-9-8-7-1011:/home/bin:/bin/bash $ mkgroup -l -g bin-grp >> /etc/group $ grep '^bin-grp:' /etc/group bin-grp:S-1-5-21-9-8-7-1012:1012: Then edit /etc/passwd so that the primary group for bin is 1012 and edit /etc/group so that bin-grp is called bin: $ grep '^bin:' /etc/passwd bin:unused_by_nt/2000/xp:1011:1012:U-YOUR_PC\bin,S-1-5-21-9-8-7-1011:/home/bin:/bin/bash $ grep '^bin-grp:' /etc/group bin:S-1-5-21-9-8-7-1012:1012: Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/