X-Spam-Check-By: sourceware.org Date: Tue, 22 Nov 2005 14:40:25 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: mkpasswd, mkgroup - initial setup of group, home dir In-Reply-To: <43836BB9.F79C8D4@dessent.net> Message-ID: References: <43836BB9 DOT F79C8D4 AT dessent DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Tue, 22 Nov 2005, Brian Dessent wrote: > Robert Body wrote: > > > Hi, I installed on a networked computer, but i don't want my cygwin to > > be part of that network as far as username/groups go (I don't want to > > add all > > Use -l instead of -d when running mkgroup and mkpasswd. Actually, "-l -c" ("-c" stands for "current user", even if a domain one). > > I would like to change these to "Owner" and "mygroup", and I would > > like my > > The user and group names in the /etc/passwd and /etc/group files should > match those in Windows. The purpose of those files is to mirror the > actual Windows user and group names for programs that expect to be able > to read them from those files. You can't arbitrarily define user/group > names there, you have to do that in Windows. You should probably stick > to only creating them with mkpasswd and mkgroup and not hand editing > them to contain other values. Umm, sorry, Brian, but this is not true. The username in /etc/passwd doesn't matter at all, and neither does the UID -- it's the SID field that's important. > Or put differently, just because you change your username in /etc/passwd > doesn't mean you've actually changed your account's user name -- True. > and in fact you may cause strange failures if the two aren't in sync. > If you want a different group name, create one in Windows and add > yourself to it, and then re-run mkgroup to keep /etc/group in sync. Not true. The name can be changed arbitrarily (in fact, the ntsec section of the UG has examples of this). > > default home directory to be /home/Owner (which is really > > C:\cygwin\home\owner in windows). The system insists on making my home > > directory "/cygdrive/u" even if I modify /etc/passwd file > > http://cygwin.com/faq/faq.setup.html#faq.setup.home > > > I read about "mkpasswd -d" - well I don't want people on network added > > to my cygwin setup, > > Then don't use -d. Use "-d -u USERNAME" to add only the user USERNAME from the domain. Or use "-c" to add the current (domain) user. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/