RFC: 1.7.33 problem with user's home directory

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Nov 14 10:35:00 GMT 2014

On Nov 14 01:04, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> >> > 1. Utilize the homeDirectory AD attribute (aka %HOMEDRIVE%%HOMEPATH%).
> >> > 2. If homeDirectory is empty, fall back to /home/$USER.
> >> 
> >> This is just a subset of what I suggested, so I’m in favor of it.
> >> (By subset I mean that I’d prefer you do essentially the same thing for the non-AD case, too.)
> > This would be most easily implemented as well.
> > The beauty here is that probably 99% of the home users don't set
> They are always set by default.

Are you kidding me?  We're talking about creating passwd entries from
user DBs, right?  We're certainly not talking about fetching the
environment variables of the current user to create arbitrary user's
passwd entry.  Ever tried the NetUserGetInfo function?

> > So they get /home/$USER as fallback,
> No.
> > which is what they got with /etc/passwd as well.  And SAM users have the
> > XML-like description field entry as well.
> > For AD environments HOMEDRIVE/HOMEPATH are typically set, though.

Funny.  I think I skip the rest of your mail.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20141114/d13d4aad/attachment.sig>

More information about the Cygwin mailing list