This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SSH and Home


On Mon, 27 Jan 2003, Thorsten Kampe wrote:

> * Kevin Jones (03-01-27 11:54 +0100)
> > I've just started using the cygwin SSH, mostly to do CVS, and I have a
> > problem with %HOME%
>
> No, you've got a problem with $USER/%USERNAME%.
>
> > I'm logged onto a W2K machine as 'Kevin Jones' [...]
>
> Don't do that, it's going to bring you nothing but trouble. Change
> your username so it doesn't contain spaces.
> Thorsten

FYI, there was a long discussion on the list some months ago which
concluded that spaces in usernames are not particularly harmful (as long
as things are quoted properly in user scripts).  If there is a
program/script that is affected by a space in a username, it should be
fixed instead.

AFAICS, the original poster's problem was that the home directory in
/etc/passwd was not set correctly.  sshd sets the home directory to
whatever's specified in /etc/passwd (mostly because it can't see the user
environment variable %HOME%, running as SYSTEM).  The best way to fix this
is to edit /etc/passwd and set the home directory for the user "Kevin
Jones" to "/cygdrive/d/home/kevinj".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]