This is the mail archive of the
mailing list for the Cygwin project.
Re: Solution to using different usernames
- From: Jay Adams <jayadams0x1 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 27 Mar 2011 10:08:03 -0700
- Subject: Re: Solution to using different usernames
I was able to achieve the desired result without modifiying /etc/passwd.
What I did was expand /etc/profile.d/user.sh to:
# use Windows's USERNAME variable
Next I zeroed out /etc/passwd so it was a blank file. Combine these
together and SSH now found the right user. I did some testing, it turns
out that you don't really have to expand /etc/profile.d/user.sh. I think
if Cygwin doesn't get what it wants from /etc/passwd it moves to check
somewhere else. Also, I was told this might cause problems when changing
user; I've never had to change users so I don't know how to test for it.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple