This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin and mkpasswd unable to recognize a domain user
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
> seems to be that the user id. is not recognized by cygwin so no
> 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
> 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html