X-Spam-Check-By: sourceware.org Date: Mon, 9 Jan 2006 08:11:34 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: sshd must be restarted In-Reply-To: <43C2560B.1040803@juno.nrl.navy.mil> Message-ID: References: , <43C02341 DOT 1040002 AT cygwin DOT com> <43C2560B DOT 1040803 AT juno DOT nrl DOT navy DOT mil> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Ugh, top-posting... Reformatted. On Mon, 9 Jan 2006, Ken Senior wrote: > Larry Hall (Cygwin) wrote: > > > Ken Senior wrote: > > > > > > > > > Some packages (SSH) think the home page should be /home/senior > > > whereas the default bash shell thinks it's located in > > > /cygdrive/c/Documents and Settings/senior.DOMAIN. > > > > This is not surprising. You set HOME in your environment to point to > > '/cygdrive/c/Documents and Settings/senior.DOMAIN'. That's the path > > you will see as your home if you log in locally. ssh finds your path > > in '/etc/passwd' and I'm sure you'll find it listed there as > > '/home/senior'. Change this with an editor or see the options to > > 'mkpasswd'. Or remove/ rename the environment variable. It's > > probably easiest to remove the variable, since everything will then > > look to '/etc/passwd' > > As I mentioned before, I have *two* entries in /etc/passwd, one > corresponding to my "senior" account on the local system and one > corresponding to the domain account. And therein lies the crux of your problem. When asked for the parameters of the user 'senior', Cygwin will find the first entry. Therefore, you will end up with the parameters (home directory, login shell, etc) for the local user, even if you're logged in as the domain one. > I've had some really strange behavior as a result. I was able to rsync > from the windows box to itself only to discover that the the files that > managed to copy were not readable by the login that issued the rsync. > > senior:unused_by_nt/2000/xp:1003:513:U-ROMULUS\senior,S-1-5-21-484763869-1563985344-682003330-1003:/home/senior:/bin/bash > senior:unused_by_nt/2000/xp:11112:10545:senior,U-SPACEAPPS\senior,S-1-5-21-893714851-1888236101-3871409848-1112:/cygdrive/c/Documents and Settings/senior.SPACEAPPS.000:/bin/bash The good news is that the Cygwin username doesn't need to be the same as the Windows/domain one (neither does the user id matter -- only the SID field, the one that starts with "S-", matters). So you can change either the local or the domain username to whatever you wish, and this should help cure some of the problems you're seeing. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- 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/