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/