delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/01/12:04:55

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Gmain User <fma AT doe DOT carleton DOT ca>
Subject: Re: Home directory
Date: Mon, 1 Oct 2007 16:04:08 +0000 (UTC)
Lines: 49
Message-ID: <loom.20071001T160325-427@post.gmane.org>
References: <fdpta4$uev$1 AT sea DOT gmane DOT org> <fdq3gi$aiq$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Andrew DeFaria wrote:
>Gmane User wrote:
>> ACcording to http://cygwin.com/faq/faq.setup.html#faq.setup.home,
>> the cygwin home directory is determined by the checking the
>> following, in the order listed:
>>
>> 1. Windows HOME environment variable
>> 2. /etc/passwd
>> 3. HOMEDRIVE and HOMEPATH variables in the Windows environment
>> 4. /
>>
>> I recently got a new domain account, and the cygwin home directory
>> is a network drive, instead of c:/cygwin/home/UserName. I am
>> currently trying to research the causes, though I don't have access
>> to the machine in question at the moment.  I assume that the path to
>> the home directory was embedded in /etc/passwd, which I created
>> using "mkpasswd -d". I am debating on manually changing this in
>> /etc/passwd back to c:/cygwin/home/UserName, since I might ssh into
>> the machine, in which case the network drive will likely not be
>> accessible. As well, working off a network drive by default makes
>> one more vulnerable to network problems.  The only thing which might
>> make the network drive attractive is the limited space on the local
>> drive.
>>
>> If I were make c:/cygwin/home/UserName my home directory, what is
>> the best way?  Ssh only considers /etc/passwd, so it seems best to
>> manually set it there, though I'd have to manually fix it each time
>> I recreate it. It still seems to be the best way, but opinions are
>> welcome on "good practice".
>
> Personally I'd:
>
>    $ mv /home /home.save
>    $ mount -bsf //<server>/<homeshare> /home
>    $ mv -rp /home.save/* /home
>
>Adjust the output of /etc/passwd to use /home/$USER

That places all cygwin file trees for all user accounts (including
administrators) onto my own domain network file space.  I suspect that
it isn't what I'm seeking to realize, though it is an interesting way
to migrate account file trees.

My coreutils 6.7-2 doesn't have a "-r" option for the "mv" command.  I
haven't been able to find release notes for the currrent coreutils
6.9-5 to see if it is simply a new switch.  Is there somewhere online
where the release notes can be perused so that I can avoid updating
cygwin right away?  I usually find that an update is followed by a
period of anomalous behaviour.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019