This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: RFC: 1.7.33 problem with user's home directory
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Corinna Vinschen <cygwin at cygwin dot com>, cygwin at cygwin dot com
- Date: Fri, 28 Nov 2014 15:08:10 +0300
- Subject: Re: RFC: 1.7.33 problem with user's home directory
- Authentication-results: sourceware.org; auth=none
- References: <20141110205216 dot GJ2782 at calimero dot vinschen dot de> <0B8D23F7-0258-472D-BF38-860402FD3CDC at etr-usa dot com> <20141111101821 dot GO2782 at calimero dot vinschen dot de> <loom dot 20141111T112847-576 at post dot gmane dot org> <20141111111437 dot GB28012 at calimero dot vinschen dot de> <20141126205658 dot GA9157 at calimero dot vinschen dot de> <20141127170042 dot GE3810 at calimero dot vinschen dot de>
- Reply-to: cygwin at cygwin dot com
Greetings, Corinna Vinschen!
>> The meaning of the schemata depend on the setting:
>>
>> db_home:
>>
>> windows AD and SAM: Utilizes the setting of the homeDrive or
>> homeDirectory attributes, or their SAM "Home folder"
>> counterparts. The Windows path is converted to a
>> POSIX path.
> I'm not really happy with this. It requires to write some value to the
> homeDrive/homeDirectory attributes, because it doesn't fall back to the
> Windows default values.
> So, another question is this: Shall "db_home: windows" fall back
> to the default Windows home dir if homeDrive/homeDirectory are empty?
Yes, if you mean it.
I mean, if you intend to use the same directory OS using for user's home
directory, you gotta use something that resembles the OS behavior.
>> @ad_attribute AD-only: Read AD attribute "ad_attribute" as POSIX
>> path.
>>
>> However, I'm contemplating to allow a Windows path
>> here, too. Does this make sense to you?
> I implemented this now. It doesn't hurt.
Windows path here makes more sense. The translation to POSIX path depends
on the fstab settings, and may vary across different systems, and even
different users, given your aim to make fstab configurable per-user. (Am I
reading it right?)
>> /path POSIX path. Remember the wildcards.
>>
>> fallback If nothing works, the fallback is /home/$USERNAME
>> (Windows username).
>>
>>
>> db_shell:
>>
>> windows Ignored. Do you want CMD instead?
> Would be interesting for symmetry only, I guess...
With bogus quoting rules of CMD? It would just not work straight, I'm
afraid. May be better with PS, but I'm not familiar with it, and I don't know
anyone, who's familiar or even considering it's use as a shell interpreter.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 28.11.2014, <14:52>
Sorry for my terrible english...
--
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