www.delorie.com/archives/browse.cgi | search |
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 <corinna-cygwin AT cygwin DOT com> |
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 |
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 |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |