Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 12 Jan 2005 14:15:30 -0500 From: "Pierre A. Humblet" To: cygwin AT cygwin DOT com Subject: Re: cygwin and mkpasswd unable to recognize a domain user Message-ID: <20050112191530.GA465659@Worldnet> References: <27B37EE93C4ED611AB530002B39D72BC07328C94 AT pa62m02 DOT iac DOT honeywell DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27B37EE93C4ED611AB530002B39D72BC07328C94@pa62m02.iac.honeywell.com> User-Agent: Mutt/1.4.1i On Wed, Jan 12, 2005 at 11:55:26AM -0700, Steinman, Jethro F (PA62) wrote: > Thanks for the info. Pierre. Comments below. > > > That's because either HOME is set in Windows to that path, > > or (yes, related problem), Cygwin defaults to using your > > HOMEDRIVE/HOMEPATH > > Right, but this is just a symptom (as you know). The more fundamental > problem > seems to be that the user id. is not recognized by cygwin so no > /cygwin/home/ > directory gets set up. No, the home directory gets built in /etc/profile, using HOME. Take a look. HOME is setup be Cygwin, from the Windows HOME or from /etc/passwd, see the FAQ. > > Normally the last line produced by "mkpasswd -l -c" > > should give you a working password entry. > > Does it? If not, send us your environment, i.e. the output of "set" in > cmd.exe > > I tried this at the bash window. > > cd /cygdrive/c/cygwin/etc > mkpasswd -l -c > passwd > mkgroup -l -c > group > > After that I did see info. about my own domain log-in in file passwd. > Then I closed the bash window and opened another to see if I still got > complaints. Unfortunately, yes, though the error message > is slightly different as follows. > > Your group name is currently "mkgroup_l_d". This indicates that not > all domain users and groups are listed in the /etc/passwd and > /etc/group files. > See the man pages for mkpasswd and mkgroup then, for example, run > mkpasswd -l -d > /etc/passwd > mkgroup -l -d > /etc/group > > This message is only displayed once (unless you recreate /etc/group) > and can be safely ignored. > cp: `Settings/E712418/group.mkgroup_l_d': specified destination directory > does not exist > Try `cp --help' for more information. There are three things here. - One is a quoting problem in /etc/profile that causes the cp error. - The second is the "mkpassd_l_d" group name. That is the name invented by mkgroup, as it can't access the domain controller to get the real group name. Simply edit /etc/group and change the group to anything you fancy. - The third is the home directory, which is setup by mkpasswd -c from HOMEDRIVE/HOMEPATH. Simply edit /etc/passwd and set it as you like, or redo "mkpasswd -l -c -p /home > /etc/passwd ". So basically you are all set. Pierre -- 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/