public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Home directory issue
@ 2013-07-02 23:55 L. V. Lammert
  2013-07-08 16:17 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 5+ messages in thread
From: L. V. Lammert @ 2013-07-02 23:55 UTC (permalink / raw)
  To: Cygwin Mailing List

After installing Cygwin on a new system that is in a domain, there is
something that is breaking with user setup.

 * The user home directory is not getting created
 * /usr/loca/bin & /usr/bin are not prepended to PATH
 * The user home directory is /cygdrive/Users/<user>,
    instead of /home/<user>
 * The path IS correct in /etc/passwd (/home/<user>)

I know the issue has something to do with the domain user, as the home
directory is not created upon installation (had to create it manually)
when logged in as a domain user.

 > Is there a way to install properly as a domain user?
 > I can create the home directory & copy skel files, but how does one
    fix the login issue (the *correct* home directory in /etc/passwd is
    used)?

/etc/profile appear correct (new install), .. and I copied skel files from
a known working machine.

Any pointers on troubleshooting would be greatly appreciated!

	Thanks!

	Lee

--
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] 5+ messages in thread

* Re: Home directory issue
  2013-07-02 23:55 Home directory issue L. V. Lammert
@ 2013-07-08 16:17 ` Larry Hall (Cygwin)
  2013-07-08 17:21   ` Alan W. Irwin
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall (Cygwin) @ 2013-07-08 16:17 UTC (permalink / raw)
  To: cygwin

On 7/2/2013 7:50 PM, L. V. Lammert wrote:
> After installing Cygwin on a new system that is in a domain, there is
> something that is breaking with user setup.
>
>   * The user home directory is not getting created
>   * /usr/loca/bin & /usr/bin are not prepended to PATH
>   * The user home directory is/cygdrive/Users/<user>,
>      instead of/home/<user>
>   * The path IS correct in/etc/passwd (/home/<user>)

<snip>

Is the HOME environment variable set in your Windows environment?  If not,
check the postinstall scripts in '/etc/postinstall', paying particular
attention to those that don't end in '.done'.  If you have some of these,
run them yourself with 'sh <scriptname>' and then move the script to
'<scriptname>.done'  Run the scripts in the order they appear.  Otherwise,
if HOME is defined in the Windows environment, just remove the definition.
You may find you have to rerun some of the postinstall scripts to "recover",
particularly '000-cygwin-post-install.sh'.  Or you can try wiping the
installation and starting over.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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] 5+ messages in thread

* Re: Home directory issue
  2013-07-08 16:17 ` Larry Hall (Cygwin)
@ 2013-07-08 17:21   ` Alan W. Irwin
  2013-07-08 18:12     ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 5+ messages in thread
From: Alan W. Irwin @ 2013-07-08 17:21 UTC (permalink / raw)
  To: cygwin

On 2013-07-08 11:09-0400 Larry Hall (Cygwin) wrote:

> On 7/2/2013 7:50 PM, L. V. Lammert wrote:
>> After installing Cygwin on a new system that is in a domain, there is
>> something that is breaking with user setup.
>>
>>   * The user home directory is not getting created
>>   * /usr/loca/bin & /usr/bin are not prepended to PATH
>>   * The user home directory is/cygdrive/Users/<user>,
>>      instead of/home/<user>
>>   * The path IS correct in/etc/passwd (/home/<user>)
>
> <snip>
>
> Is the HOME environment variable set in your Windows environment?  If not,
> check the postinstall scripts in '/etc/postinstall', paying particular
> attention to those that don't end in '.done'.  If you have some of these,
> run them yourself with 'sh <scriptname>' and then move the script to
> '<scriptname>.done'  Run the scripts in the order they appear.  Otherwise,
> if HOME is defined in the Windows environment, just remove the definition.
> You may find you have to rerun some of the postinstall scripts to "recover",
> particularly '000-cygwin-post-install.sh'.  Or you can try wiping the
> installation and starting over.
>

I experienced all the same symptoms reported by the OP with my
setup.exe on Wine attempt.  So you have given me hope that some of the
errors I saw were due to not setting HOME.  Could you be more specific
about exactly how HOME should be set "in your Windows environment".

Under Wine I can get into a cmd environment.  From there the top-level
directory of the Cygwin installation directory that I usually create
with setup.exe is designated as

z:\home\wine\newstart\cygwin

That same directory is designated as

/z/home/wine/newstart/cygwin

from the bash/wine environment.

What exact cmd command should I use to set HOME for user "wine" before
I run a setup.exe from cmd to establish a Cygwin installation tree
from scratch whose top-level is given above? Would it be

set HOME=z:\home\wine\newstart\cygwin\home\wine

or something else?

I prefer the bash environment so if I set the HOME environment
variable from there would setup.exe (run from bash) pick that up
and use it?  If so, would it be set by

export HOME=/z/home/wine/newstart/cygwin/home/wine

or something else?   (As you can probably tell, I am having some
difficulty in sorting out the differences in the way directories and
environment variables are specified, at the bash/linux, bash/wine,
cmd/wine, and cygwin/wine levels.)

Are there any other environment variables that should be set as well
before running setup.exe for a fresh install?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

--
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] 5+ messages in thread

* Re: Home directory issue
  2013-07-08 17:21   ` Alan W. Irwin
@ 2013-07-08 18:12     ` Larry Hall (Cygwin)
  2013-07-08 20:24       ` Alan W. Irwin
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall (Cygwin) @ 2013-07-08 18:12 UTC (permalink / raw)
  To: cygwin

On 7/8/2013 12:17 PM, Alan W. Irwin wrote:
> On 2013-07-08 11:09-0400 Larry Hall (Cygwin) wrote:
>
>> On 7/2/2013 7:50 PM, L. V. Lammert wrote:
>>> After installing Cygwin on a new system that is in a domain, there is
>>> something that is breaking with user setup.
>>>
>>>   * The user home directory is not getting created
>>>   * /usr/loca/bin & /usr/bin are not prepended to PATH
>>>   * The user home directory is/cygdrive/Users/<user>,
>>>      instead of/home/<user>
>>>   * The path IS correct in/etc/passwd (/home/<user>)
>>
>> <snip>
>>
>> Is the HOME environment variable set in your Windows environment?  If not,
>> check the postinstall scripts in '/etc/postinstall', paying particular
>> attention to those that don't end in '.done'.  If you have some of these,
>> run them yourself with 'sh <scriptname>' and then move the script to
>> '<scriptname>.done'  Run the scripts in the order they appear.  Otherwise,
>> if HOME is defined in the Windows environment, just remove the definition.
>> You may find you have to rerun some of the postinstall scripts to "recover",
>> particularly '000-cygwin-post-install.sh'.  Or you can try wiping the
>> installation and starting over.
>>
>
> I experienced all the same symptoms reported by the OP with my
> setup.exe on Wine attempt.  So you have given me hope that some of the
> errors I saw were due to not setting HOME.  Could you be more specific
> about exactly how HOME should be set "in your Windows environment".

<snip>

> Are there any other environment variables that should be set as well
> before running setup.exe for a fresh install?

I believe you have drawn the opposite conclusion from what I was trying
to convey.  It is best to _not_ have HOME set in your Windows environment
prior to running 'setup.exe'.  If you do have it set, 'setup.exe' will
use that directory as your home rather than the default '/home/<username>'.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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] 5+ messages in thread

* Re: Home directory issue
  2013-07-08 18:12     ` Larry Hall (Cygwin)
@ 2013-07-08 20:24       ` Alan W. Irwin
  0 siblings, 0 replies; 5+ messages in thread
From: Alan W. Irwin @ 2013-07-08 20:24 UTC (permalink / raw)
  To: cygwin

On 2013-07-08 13:21-0400 Larry Hall (Cygwin) wrote:

> I believe you have drawn the opposite conclusion from what I was trying
> to convey.  It is best to _not_ have HOME set in your Windows environment
> prior to running 'setup.exe'.  If you do have it set, 'setup.exe' will
> use that directory as your home rather than the default '/home/<username>'.

Your original message (especially the last part) was pretty clear, but
I just reversed the meaning.  Sorry.

I actually ran setup.exe from a bash/wine environment, and for that
the HOME environment variable (as printed out by

printenv |grep HOME

) was not set.  So there is likely some other reason (which may or may
not be related to a Wine bug) that I got the same symptoms as the OP.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

--
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] 5+ messages in thread

end of thread, other threads:[~2013-07-08 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-02 23:55 Home directory issue L. V. Lammert
2013-07-08 16:17 ` Larry Hall (Cygwin)
2013-07-08 17:21   ` Alan W. Irwin
2013-07-08 18:12     ` Larry Hall (Cygwin)
2013-07-08 20:24       ` Alan W. Irwin

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).