public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RFC: 1.7.33 problem with user's home directory
@ 2014-11-10 20:52 Corinna Vinschen
  2014-11-10 21:18 ` Achim Gratz
                   ` (4 more replies)
  0 siblings, 5 replies; 91+ messages in thread
From: Corinna Vinschen @ 2014-11-10 20:52 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2453 bytes --]

Hi,


after a long discussion in RL today, I came to the conclusion that
there's a major problem in the current handling of the user's home
directory in AD environments in the new user account code when not using
/etc/passwd files.

Here's how it works and how it's documented in the preliminary
documentation at
https://cygwin.com/preliminary-ug/ntsec.html#ntsec-mapping-passwdinfo

- If your account is an AD account, the home directory is taken from the
  RFC 2307 entry unixHomeDirectory.

- Otherwise, if these values are empty or don't exist, your fallback
  home directory is /home/$USER (without domain prefix).

As you may have noticed, there's nothing in there taking the Windows
home directory into account.  It's indeed not used at all by the new
code.

Up to Cygwin 1.7.32, mkpasswd (but not with -u) generated the Cygwin
home directory by converting the SAM/AD home folder entry to POSIX
style, if it's non-empty.  Fallback is /home/$USER.

When I implemented the new scheme I thought it a good idea to decouple
the Cygwin home dir from the Windows home dir.  However, in the today's
discussion the following two arguments came up:

- If you're using the Windows home folder setting to maintain file
  server based home directories, you typically want that these
  directories are used for Cygwin stuff as well (central administration,
  central backup).
  Having to maintain the home directories twice, once in the
  homeDirectory, once in the unixHomeDirectory entry is quite a hassle,
  especially given that unixHomeDirectory does not support variable
  substitution (e.g. "/home/%USERNAME%" won't work).

- If you're already using AD as NIS server, unixHomeDirectory is already
  used for UNIX machines.  Trying to align the unixHomeDirectory for
  Cygwin to homeDirectory for all the rest of Windows will potentially
  become impossible then.

These arguments are quite serious and it questions the "good idea" part
of this change a lot.

What do you think?

Shall the "db" entries utilize the Windows home folder if it exits(*)
and drop using the unixHomeDirectory?  It seems inevitable...


Corinna


(*) This would automatically work for SAM accounts as well because SAM
    provides the same Windows home folder entry.


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread
* Re: RFC: 1.7.33 problem with user's home directory
@ 2014-11-11 10:01 Houder
  0 siblings, 0 replies; 91+ messages in thread
From: Houder @ 2014-11-11 10:01 UTC (permalink / raw)
  To: cygwin

>Marco Atzeri wrote:

>>On 11/11/2014 7:40 AM, Andrey Repin wrote:
>>
>>    In short, elusive benefits of having a separate cygwin-specific "clean" homes
>>    versus confusing disjoint of multiple places to look for single user's files,
>>    settings, and other stuff when it comes to backups and migrating profiles.
>>

>This an extremely personal point of view.
>For me, I strongly hate mixing my cygwin home with
>standard windows one.
>I prefer to have separate cygwin home also between 32 and 64 bit
>

>> WBR,
>> Audrey Repin

>Regards
>Marco

Andrey has expressed his opinion on "Cygwin's user home" several times now. And I sincerely
hope that it will not become the accepted view for the location of an user's home.

Please, please, please, do NOT remove the possibility to maintain (the location of an user's
home of) Cygwin as far away from Windows as possible ...

(otherwise I will have another reason the stick to the passwd/group files)

And my apology to Andrey for failing to maintain the "appropriate threading".

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 91+ messages in thread

end of thread, other threads:[~2014-12-10 23:29 UTC | newest]

Thread overview: 91+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-10 20:52 RFC: 1.7.33 problem with user's home directory Corinna Vinschen
2014-11-10 21:18 ` Achim Gratz
2014-11-10 21:39   ` Corinna Vinschen
2014-11-11  7:30     ` Achim Gratz
2014-11-11  0:50 ` Andrey Repin
2014-11-11  2:42   ` Andrew DeFaria
2014-11-11  6:35     ` Andrey Repin
2014-11-11  9:15   ` Frank Fesevur
2014-11-11 15:20     ` Andrey Repin
2014-11-11  1:39 ` Jeffrey Altman
2014-11-11  6:19   ` Warren Young
2014-11-11  9:33     ` Corinna Vinschen
2014-11-11 10:00   ` Corinna Vinschen
2014-11-11 13:52     ` Jeffrey Altman
2014-11-11 16:19       ` Corinna Vinschen
2014-11-11  4:26 ` Yaakov Selkowitz
2014-11-11  6:05   ` Warren Young
2014-11-11  6:50   ` Andrey Repin
2014-11-11  9:00     ` Marco Atzeri
2014-11-11  6:09 ` Warren Young
2014-11-11 10:18   ` Corinna Vinschen
2014-11-11 11:06     ` Achim Gratz
2014-11-11 11:14       ` Corinna Vinschen
2014-11-11 12:48         ` Habermann, David (D)
2014-11-12 16:27           ` Warren Young
2014-11-12 16:31           ` Warren Young
2014-11-12 17:55             ` Habermann, David (D)
2014-11-12 21:28               ` cyg Simple
2014-11-12 21:51                 ` Habermann, David (D)
2014-11-13  9:06                   ` Corinna Vinschen
2014-11-12 22:35                 ` Andrey Repin
2014-11-11 16:45         ` Achim Gratz
2014-11-11 16:55           ` Corinna Vinschen
2014-11-26 21:16         ` Corinna Vinschen
2014-11-26 21:29           ` Cygwin AD schema and configuration extensions (was Re: RFC: 1.7.33 problem with user's home directory) Corinna Vinschen
2014-11-26 21:56             ` Achim Gratz
2014-11-27  9:36               ` Corinna Vinschen
2014-11-27 14:52                 ` Corinna Vinschen
2014-11-27 19:23                   ` Achim Gratz
2014-11-27 20:12                     ` Corinna Vinschen
2014-11-28  2:21                       ` Achim Gratz
2014-11-26 21:58             ` Habermann, David (D)
2014-11-26 23:15               ` Corinna Vinschen
2014-11-27 16:12           ` RFC: 1.7.33 problem with user's home directory Corinna Vinschen
2014-11-27 17:41           ` Corinna Vinschen
2014-11-28 12:48             ` Andrey Repin
2014-11-28 16:20               ` Corinna Vinschen
2014-11-28 17:04                 ` Andrey Repin
2014-11-28 18:34                   ` Corinna Vinschen
2014-11-29  9:36                     ` Andrey Repin
2014-12-01 17:50                       ` cyg Simple
2014-12-02  5:35                         ` Andrey Repin
2014-12-03 14:05                           ` cyg Simple
2014-12-03 20:20                             ` Andrey Repin
2014-12-04 12:21                               ` Linda Walsh
2014-12-04 13:47                                 ` Corinna Vinschen
2014-12-02 16:03                 ` Corinna Vinschen
2014-11-28 16:17             ` Andrey Repin
2014-12-03  7:35           ` Cygwin AD integration home/shell changes Andrey Repin
2014-12-03  9:16             ` Corinna Vinschen
2014-12-03 13:50               ` Andrey Repin
2014-12-04  9:40                 ` Corinna Vinschen
2014-12-05  5:20                   ` Andrey Repin
2014-12-05 10:13                     ` Corinna Vinschen
2014-12-05 20:20                       ` Andrey Repin
2014-12-06 10:08                         ` Corinna Vinschen
2014-12-04 15:49           ` RFC: 1.7.33 problem with user's home directory Corinna Vinschen
2014-12-05  5:35             ` Andrey Repin
2014-12-05 10:15               ` Corinna Vinschen
2014-12-05 21:20                 ` Andrey Repin
2014-12-06 11:08                   ` Corinna Vinschen
2014-12-10 20:52                   ` cyg Simple
2014-12-10 22:50                     ` Andrey Repin
2014-12-10 23:29                     ` David Stacey
2014-11-11 11:09     ` Corinna Vinschen
2014-11-11 12:11     ` Bryan Berns
2014-11-11 12:31       ` Corinna Vinschen
2014-11-11 15:35     ` Andrey Repin
2014-11-11 16:57       ` Corinna Vinschen
2014-11-11 20:20         ` Andrey Repin
2014-11-12 10:30           ` Corinna Vinschen
2014-11-12 20:35             ` Andrey Repin
2014-11-13  9:07               ` Corinna Vinschen
2014-11-13 21:50                 ` Andrey Repin
2014-11-14 10:32                   ` Corinna Vinschen
2014-11-17  4:05                     ` Andrey Repin
2014-11-12 16:45     ` Warren Young
2014-11-13  9:27       ` Corinna Vinschen
2014-11-13 22:05         ` Andrey Repin
2014-11-14 10:35           ` Corinna Vinschen
2014-11-11 10:01 Houder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).