Re: Solution to using different usernames

2011-03-27 Thread Jay Adams
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 USER=$USERNAME export USER HOME=/home/$USER export HOME Next I zeroed out /etc/passwd so it was a blank file. Combine these together and SSH

Re: Solution to using different usernames

2011-03-11 Thread Corinna Vinschen
On Mar 10 21:24, Jay Adams wrote: > Shouldn't there be a tool in Cygwin that will give you the SID? mkpasswd -c Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http

Re: Solution to using different usernames

2011-03-10 Thread Jay Adams
Shouldn't there be a tool in Cygwin that will give you the SID? After all, it does have to read it too! I do like Sys Internals, but they add regkeys which I don't like. Also, isn't setting the SID a bit static? What would happen if I wanted to change usernames again? So I ask, is there a way to dy

Re: Solution to using different usernames

2011-03-08 Thread Larry Hall (Cygwin)
On 3/8/2011 9:03 PM, Jay Adams wrote: I made the USER variable use the Windows variable USERNAME (standard variable). From there I could change the USERNAME variable simply by setting to what I like. I included the HOME variable in my code snippet. I don't know if editting /etc/passwd will hav

Solution to using different usernames

2011-03-08 Thread Jay Adams
My friend, Jeremy Bopp, let me know that if I use /etc/profile.d I could still get updates for /etc/profile unlike when you edit it directly (comment out USER="`id -un`"). I had to think of a way to change $USER from a different file so I came up with: # use Windows's USERNAME variable USER=$USERN