Re: handling invalid user/groups (was incompat in cygwin choice of using '+' as domain and user separator.)

2018-09-05 Thread L A Walsh




On 9/5/2018 1:03 AM, Corinna Vinschen wrote:

No, I deliberately removed it from the released version to tease you.


Meanie!!!

:-)


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



Odd email symptoms (was Re: handling invalid user/groups)

2018-09-05 Thread L A Walsh
Thanks for your reply, it's not so much a problem for me, 
just that when I have some email problem, I often need someone else

to point it out to me, as from my perspective, everything is working
fine!  :-)


On 9/5/2018 4:30 AM, Andrey Repin wrote:

Greetings, L A Walsh!


p.s. -- some "FYI" stuff about your email:
when i respond to one of your emails, I get two (2) 
"To:" entries -- both to cygwin@cygwin.com.

I think it might be because the emails from you contain
two 'Mail-Followup-To:' lines -- see below**.


They are added by list software.
Your email client is expected to sort it out and only include unique
addresses.


It does for most things, but not for 'Mail-Followup-To'.
Never seen it on anyone else's email...




Even if not, the first MTA you submit your message to should do that.

---
Really?... so sendmail should strip off duplicate addresses.
I wasn't aware of that.  I'll have to try it.







Also, I don't get your message included in a response
(because it is in a separate attachment.  Is that intentional?


No, it's your weird mail agent failing to parse a signed email.


I see others who sign their email, but hers is the only one that
comes through in an attachment.

So wondering why her email in particular comes through that way.

My "weird" Thunderbird mail agent...h...it may be old, but
first time I've heard Tbird called weird.

-linda




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



Re: handling invalid user/groups (was incompat in cygwin choice of using '+' as domain and user separator.)

2018-09-05 Thread Andrey Repin
Greetings, L A Walsh!

> p.s. -- some "FYI" stuff about your email:
> when i respond to one of your emails, I get two (2) 
> "To:" entries -- both to cygwin@cygwin.com.
> I think it might be because the emails from you contain
> two 'Mail-Followup-To:' lines -- see below**.

They are added by list software.
Your email client is expected to sort it out and only include unique
addresses.
Even if not, the first MTA you submit your message to should do that.

> Also, I don't get your message included in a response
> (because it is in a separate attachment.  Is that intentional?

No, it's your weird mail agent failing to parse a signed email.


-- 
With best regards,
Andrey Repin
Wednesday, September 5, 2018 14:26:34

Sorry for my terrible english...


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



Re: handling invalid user/groups (was incompat in cygwin choice of using '+' as domain and user separator.)

2018-09-05 Thread Corinna Vinschen
On Sep  4 13:08, L A Walsh wrote:
> On 8/27/2018 10:26 AM, Corinna Vinschen wrote:
> 
> On 8/27/2018 3:50 AM, Corinna Vinschen wrote:
> > The only sane way to handle unknown SIDs in file ACLs is to ignore them
> > entirely.  The result will be that you never see them in getfacl, nor
> > will they be stored by tar or rsync.  They are just not there from the
> > Cygwin perspective.
> ---
>   Sounds fine to me...
> 
> > I created a patch, uploaded developer snapshots to
> > https://cygwin.com/snapshots/ and released a new Cygwin test
> > release 2.11.0-0.4 with this change.  Please giver any of
> > them a try.
> 
> does the latest cygwin also have this patch

No, I deliberately removed it from the released version to tease you.

> p.s. -- some "FYI" stuff about your email:
>when i respond to one of your emails, I get two (2)"To:"
> entries -- both to cygwin@cygwin.com.
>   I think it might be because the emails from you contain
>   two 'Mail-Followup-To:' lines -- see below**.

I only add a reply-to.  I have no idea where the followup to's are
generated.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: handling invalid user/groups (was incompat in cygwin choice of using '+' as domain and user separator.)

2018-09-04 Thread L A Walsh

On 8/27/2018 10:26 AM, Corinna Vinschen wrote:

On 8/27/2018 3:50 AM, Corinna Vinschen wrote:

The only sane way to handle unknown SIDs in file ACLs is to ignore them
entirely.  The result will be that you never see them in getfacl, nor
will they be stored by tar or rsync.  They are just not there from the
Cygwin perspective.

---
Sounds fine to me...


I created a patch, uploaded developer snapshots to
https://cygwin.com/snapshots/ and released a new Cygwin test
release 2.11.0-0.4 with this change.  Please giver any of
them a try.


does the latest cygwin also have this patch as I wasn't able to
duplicate the error case with the newer cygwin (nor the patch 
you posted earlier).  I.e. was trying to make sure I got the error

w/o patch, then goes away w/patch, but in this case, either I didn't
dup the error or it was in latest version.

Hoping it is the latter.

Cheers,
Linda

p.s. -- some "FYI" stuff about your email:
   when i respond to one of your emails, I get two (2) 
   "To:" entries -- both to cygwin@cygwin.com.

I think it might be because the emails from you contain
two 'Mail-Followup-To:' lines -- see below**.

Also, I don't get your message included in a response
(because it is in a separate attachment.  Is that intentional?

**-(elided header stuff):
Received: (qmail 2620 invoked by alias); 27 Aug 2018 17:26:36 -
Mailing-List: contact cygwin-help-cygwin.com; run by ezmlm
Precedence: bulk
...
Sender: cygwin-owner-cygwin.com
Mail-Followup-To: cygwin-cygwin.com   <<<
Delivered-To: mailing list cygwin-cygwin.com
Received: (qmail 2605 invoked by uid 89); 27 Aug 2018 17:26:35 -
Authentication-Results: sourceware.org; auth=none
...
From: Corinna Vinschen 
...
Reply-To: cygwin-cygwin.com
Mail-Followup-To: cygwin-cygwin.com   <<<---


Looks like 1 is added by the list, the other is maybe added by your
email client?






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



Re: Failed password for invalid user

2017-03-07 Thread Corinna Vinschen
On Mar  6 09:48, jesus san miguel wrote:
> Hi Andrey,
> 
> Thanks for your answer, but I am using password-less authentication
> too (with public/private keys), so /etc/password is necessary, isn't
> it?

No!  Who told you that?  As long as you use the user account name
the way it's called in Cygwin (`getent passwd ...' is helpful), and
as long as you use it case-sensitive when logging in via ssh, you
doe't need /etc/passwd.  You only need this file to cover special 
cases like using different names for the same user account.

Please have a look into http://cygwin.com/cygwin-ug-net/ntsec.html.

It's pretty much all explained there.  Well, except for the fact that
OpenSSH handles the username case-sensitive, but that's an OpenSSH
issue, not a Cygwin issue.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: Failed password for invalid user

2017-03-07 Thread Corinna Vinschen
On Mar  3 10:03, jesus san miguel wrote:
> I am running cygwin 2.7.0 sshd service under a local cyg_server account.
> 
> I wanted to avoid case sensitive problems by duplicating users in
> /etc/passwd, but I find mixed results:
> I can login as "Administrator", "MYPC+Administrator" and "miabuela",
> but not as "administrator" despite all of them being the same Window
> user.
> 
> This is an excerpt of /etc/passwd:
> 
> $ cat /etc/passwd | grep 500
> SSFE009W2012+Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> miabuela:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> 
> #Administrator@SSFE009W2012 /etc
> $ uname -a
> CYGWIN_NT-6.3-WOW SSFE009W2012 2.7.0(0.306/5/3) 2017-02-12 13:13 i686 Cygwin
> 
> The error I get in windows log is "Failed password for invalid user
> administrator"
> 
> 
> Thanks in advance,
> Jesus

OpenSSH checks the username case-sensitive!

So, depending on the order in /etc/passwd you can login either with
"Administrator" or with "administrator", whatever comes first and
matches the user account.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: Failed password for invalid user

2017-03-07 Thread cyg Simple
On 3/6/2017 4:22 AM, Andrey Repin wrote:
> Greetings, jesus san miguel!
> 
>> Besides, user alias "miabuela" is working as expected. Why shouldn't
>> "administrator" alias work as well?
> 
> That's the worst idea I've heard since morning.
> 

It's a legacy idea to allow different users control a password to the
same uid.  Not a bad idea but certainly not a secure one as needed for
today. It's still a valid idea depending on what the uid is used for.

-- 
cyg Simple

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



Re: Failed password for invalid user

2017-03-06 Thread Andrey Repin
Greetings, jesus san miguel!

Please don't top-post in this list. Thank you.

> On Fri, Mar 3, 2017 at 2:48 PM, Andrey Repin <anrdaemon@> wrote:

And please don't quote raw email addresses.

>> Greetings, jesus san miguel!
>>
>>> I wanted to avoid case sensitive problems by duplicating users in
>>> /etc/passwd,
>>
>> Just delete that file already.
>>
>>> but I find mixed results:
>>> I can login as "Administrator", "MYPC+Administrator" and "miabuela",
>>> but not as "administrator" despite all of them being the same Window
>>> user.
>>
>>> This is an excerpt of /etc/passwd:
>>
>>> $ cat /etc/passwd | grep 500
>>> SSFE009W2012+Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>>> miabuela:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>>> Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>>> administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>>
>>> #Administrator@SSFE009W2012 /etc
>>> $ uname -a
>>> CYGWIN_NT-6.3-WOW SSFE009W2012 2.7.0(0.306/5/3) 2017-02-12 13:13 i686 Cygwin
>>
>>> The error I get in windows log is "Failed password for invalid user
>>> administrator"
>>
>> Cygwin plugs directly into Windows SAM for years already.
>> You're just making it hard for yourself.

> Thanks for your answer, but I am using password-less authentication
> too (with public/private keys), so /etc/password is necessary, isn't
> it?

For all that I know, all you need is to save your password for the account you
want to login with.

> Besides, user alias "miabuela" is working as expected. Why shouldn't
> "administrator" alias work as well?

That's the worst idea I've heard since morning.


-- 
With best regards,
Andrey Repin
Monday, March 6, 2017 12:20:25

Sorry for my terrible english...


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



Re: Failed password for invalid user

2017-03-06 Thread jesus san miguel
Hi Andrey,

Thanks for your answer, but I am using password-less authentication
too (with public/private keys), so /etc/password is necessary, isn't
it?
Besides, user alias "miabuela" is working as expected. Why shouldn't
"administrator" alias work as well?

Best,
Jesus

On Fri, Mar 3, 2017 at 2:48 PM, Andrey Repin <anrdae...@yandex.ru> wrote:
> Greetings, jesus san miguel!
>
>> I wanted to avoid case sensitive problems by duplicating users in
>> /etc/passwd,
>
> Just delete that file already.
>
>> but I find mixed results:
>> I can login as "Administrator", "MYPC+Administrator" and "miabuela",
>> but not as "administrator" despite all of them being the same Window
>> user.
>
>> This is an excerpt of /etc/passwd:
>
>> $ cat /etc/passwd | grep 500
>> SSFE009W2012+Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>> miabuela:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>> Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>> administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
>
>> #Administrator@SSFE009W2012 /etc
>> $ uname -a
>> CYGWIN_NT-6.3-WOW SSFE009W2012 2.7.0(0.306/5/3) 2017-02-12 13:13 i686 Cygwin
>
>> The error I get in windows log is "Failed password for invalid user
>> administrator"
>
> Cygwin plugs directly into Windows SAM for years already.
> You're just making it hard for yourself.
>
>
> --
> With best regards,
> Andrey Repin
> Friday, March 3, 2017 16:47:15
>
> Sorry for my terrible english...
>

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



Re: Failed password for invalid user

2017-03-03 Thread Andrey Repin
Greetings, jesus san miguel!

> I wanted to avoid case sensitive problems by duplicating users in
> /etc/passwd,

Just delete that file already.

> but I find mixed results:
> I can login as "Administrator", "MYPC+Administrator" and "miabuela",
> but not as "administrator" despite all of them being the same Window
> user.

> This is an excerpt of /etc/passwd:

> $ cat /etc/passwd | grep 500
> SSFE009W2012+Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> miabuela:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
> administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash

> #Administrator@SSFE009W2012 /etc
> $ uname -a
> CYGWIN_NT-6.3-WOW SSFE009W2012 2.7.0(0.306/5/3) 2017-02-12 13:13 i686 Cygwin

> The error I get in windows log is "Failed password for invalid user
> administrator"

Cygwin plugs directly into Windows SAM for years already.
You're just making it hard for yourself.


-- 
With best regards,
Andrey Repin
Friday, March 3, 2017 16:47:15

Sorry for my terrible english...


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



Failed password for invalid user

2017-03-03 Thread jesus san miguel
I am running cygwin 2.7.0 sshd service under a local cyg_server account.

I wanted to avoid case sensitive problems by duplicating users in
/etc/passwd, but I find mixed results:
I can login as "Administrator", "MYPC+Administrator" and "miabuela",
but not as "administrator" despite all of them being the same Window
user.

This is an excerpt of /etc/passwd:

$ cat /etc/passwd | grep 500
SSFE009W2012+Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
miabuela:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
Administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash
administrator:*:197108:197121:U-SSFE009W2012\Administrator,S-1-5-21-3863157116-1840367147-1613345037-500:/home/Administrator:/bin/bash

#Administrator@SSFE009W2012 /etc
$ uname -a
CYGWIN_NT-6.3-WOW SSFE009W2012 2.7.0(0.306/5/3) 2017-02-12 13:13 i686 Cygwin

The error I get in windows log is "Failed password for invalid user
administrator"


Thanks in advance,
Jesus

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



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-17 Thread David Picton

  * From: Robert Peaslee peasleer at gmail dot com
   * To: cygwin at cygwin dot com
   * Date: Fri, 16 Mar 2007 17:19:18 -0400
   * References:
[EMAIL PROTECTED]



Thrall, Bryan wrote:



Yes, WinXP stores your username twice (Full name and User Name) and
Cygwin uses the hidden one (User Name), but I'm pretty sure you
don't have to reinstall XP to change it!




IIRC, you can change the username from Control Panel-User
Accounts-Advanced tab-Advanced button-Users-right click on the user
and select Rename. You might need to be Administrator to do this,
though (and it only works for local users, so if you're on a domain, you
need to contact the domain admin).


There's a slight problem here.  I have XP, but I can't see an Advanced
tab in the User Accounts window.  It lacks all advanced functionality,
so I use the Computer Management window as described below:


I no longer have XP installed, but found the same can be done in Vista by 
opening the
computer management window (Right click on my computer - manage ), expanding 
the
Local Users and Groups tree, and clicking on Users. Then the instructions 
are the
same as Bryan's, right click on the user and hit 'rename' to set a new username.


This does change the real username, and the change will take effect in
Cygwin once the password file has been rebuilt using mkpasswd (or
updated by hand).  (However, it should be noted that the user's
profile in Documents and Settings is not renamed).

--
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/



Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Keith Mitchell
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.


I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This is 
just a bug report documenting my discoveries and what I believe is going on.


1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I am 
guessing this list is stored in the Windows XP registry as this list 
does not exist on the drive where CygWin is installed, in my case, the D 
drive. This list is NEVER updated on subsequent CygWin installs. This is 
the REAL problem: no updates on subsequent installs.


2. Subsequent installations of CygWin utilize the aforementioned out of 
date username list, even though those usernames have been changed and 
are no longer valid


3. My problems occurred as a result of a conflict between the list of 
original usernames that are no longer valid created by the first virgin 
install of CygWin and usernames that currently valid after user manager 
changes. This registry entry (or whatever the source of the invalid 
usernames) entry needs either to either be purged before or updated as a 
result of subsequent CygWin installs.


Again thanks to all.

Keith Mitchell

--
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/



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Christopher Faylor
On Fri, Mar 16, 2007 at 04:19:35PM -0400, Keith Mitchell wrote:
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.

I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This is 
just a bug report documenting my discoveries and what I believe is going on.

1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I am 
guessing this list is stored in the Windows XP registry as this list 
does not exist on the drive where CygWin is installed, in my case, the D 
drive. This list is NEVER updated on subsequent CygWin installs. This is 
the REAL problem: no updates on subsequent installs.

Just in case it isn't clear: *Cygwin* does not store a list of usernames
in the registry.

cgf

--
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/



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Gustavo Seabra

Keith Mitchell wrote:
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.


I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This 
is just a bug report documenting my discoveries and what I believe is 
going on.


1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I 
am guessing this list is stored in the Windows XP registry as this 
list does not exist on the drive where CygWin is installed, in my 
case, the D drive. This list is NEVER updated on subsequent CygWin 
installs. This is the REAL problem: no updates on subsequent installs.


2. Subsequent installations of CygWin utilize the aforementioned out 
of date username list, even though those usernames have been changed 
and are no longer valid


3. My problems occurred as a result of a conflict between the list of 
original usernames that are no longer valid created by the first 
virgin install of CygWin and usernames that currently valid after user 
manager changes. This registry entry (or whatever the source of the 
invalid usernames) entry needs either to either be purged before or 
updated as a result of subsequent CygWin installs.


Again thanks to all.

Keith Mitchell

Hi Keith,

In the end, you didn't mention HOW you solved the problem...

BTW, I had one problem with WinXP a lng time ago that could be 
related to that. I don't remember the details anymore, but the point is 
that after changing a username in WindowsXP, apparently the changes were 
made only on the outside, meaning that I would see a different name 
but, internally, windows would still use the old one. Maybe what you are 
describing is really related to the way Windows handles the username 
changes, not Cygwin. (You can notice how much I know about that stuff, 
right :-) )


Gustavo.

--
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/



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Robert Peaslee

Keith Mitchell wrote:
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.


I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This 
is just a bug report documenting my discoveries and what I believe is 
going on.


1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I 
am guessing this list is stored in the Windows XP registry as this 
list does not exist on the drive where CygWin is installed, in my 
case, the D drive. This list is NEVER updated on subsequent CygWin 
installs. This is the REAL problem: no updates on subsequent installs.


2. Subsequent installations of CygWin utilize the aforementioned out 
of date username list, even though those usernames have been changed 
and are no longer valid


3. My problems occurred as a result of a conflict between the list of 
original usernames that are no longer valid created by the first 
virgin install of CygWin and usernames that currently valid after user 
manager changes. This registry entry (or whatever the source of the 
invalid usernames) entry needs either to either be purged before or 
updated as a result of subsequent CygWin installs.


Again thanks to all.

Keith Mitchell 

Actually, this information is incorrect.

Windows XP stores the first username you choose and will associate your 
current username to it regardless of what you change it to. Cygwin 
stores nothing, it is asking Windows what your username is and getting a 
response of what Windows tells it. I can't verify this right now, but I 
do believe that if you navigate to C:\Documents and Settings\ you should 
find that your old usernames still exist in place of your new usernames. 
That should be verification that it is Windows that is acting strangely, 
and is not a Cygwin problem.


You can get around this by either reinstalling XP and setting up new 
usernames that are correct from the start, creating new users completely 
(not changing the names of existing users) and migrate your personal 
information to the new user profiles, or finally, just get used to 
typing quotes around your usernames or escaping the spaces when using 
Cygwin.


--Robert Peaslee

--
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/



RE: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Thrall, Bryan
Robert Peaslee wrote on Friday, March 16, 2007 3:53 PM:
 Windows XP stores the first username you choose and will associate
 your current username to it regardless of what you change it to.
 Cygwin stores nothing, it is asking Windows what your username is and
 getting a response of what Windows tells it. I can't verify this
 right now, but I do believe that if you navigate to C:\Documents and
 Settings\ you should find that your old usernames still exist in
 place of your new usernames. That should be verification that it is
 Windows that is acting strangely, and is not a Cygwin problem.
 
 You can get around this by either reinstalling XP and setting up new
 usernames that are correct from the start, creating new users
 completely (not changing the names of existing users) and migrate
 your personal information to the new user profiles, or finally, just
 get used to typing quotes around your usernames or escaping the
 spaces when using Cygwin.

Yes, WinXP stores your username twice (Full name and User Name) and
Cygwin uses the hidden one (User Name), but I'm pretty sure you
don't have to reinstall XP to change it!

IIRC, you can change the username from Control Panel-User
Accounts-Advanced tab-Advanced button-Users-right click on the user
and select Rename. You might need to be Administrator to do this,
though (and it only works for local users, so if you're on a domain, you
need to contact the domain admin).

Also, as someone already said, it is trivial to replace the
names-with-spaces in the /etc/passwd file with names that have no
spaces, as long as you don't mess with the SID.

-- 
Bryan Thrall
FlightSafety International
[EMAIL PROTECTED]

--
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/



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Robert Peaslee

Thrall, Bryan wrote:

Yes, WinXP stores your username twice (Full name and User Name) and
Cygwin uses the hidden one (User Name), but I'm pretty sure you
don't have to reinstall XP to change it!

IIRC, you can change the username from Control Panel-User
Accounts-Advanced tab-Advanced button-Users-right click on the user
and select Rename. You might need to be Administrator to do this,
though (and it only works for local users, so if you're on a domain, you
need to contact the domain admin).

Also, as someone already said, it is trivial to replace the
names-with-spaces in the /etc/passwd file with names that have no
spaces, as long as you don't mess with the SID.

  

That is good information to have. Thanks for your reply, Bryan.

I no longer have XP installed, but found the same can be done in Vista 
by opening the computer management window (Right click on my computer - 
manage ), expanding the Local Users and Groups tree, and clicking on 
Users. Then the instructions are the same as Bryan's, right click on 
the user and hit 'rename' to set a new username.


--Robert Peaslee

--
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/



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Thorsten Kampe
* Robert Peaslee (Fri, 16 Mar 2007 16:52:40 -0400)
 Actually, this information is incorrect.
 
 Windows XP stores the first username you choose and will associate your 
 current username to it regardless of what you change it to. Cygwin 
 stores nothing, it is asking Windows what your username is and getting a 
 response of what Windows tells it.

Cygwin asks Windows at first install about the user names and creates 
/etc/passwd. The problem is (or can be) that this list never gets updated 
even if the user names change or new user are added.

As Keith wrote:
Subsequent installations of CygWin utilize the aforementioned out of 
date username list, even though those usernames have been changed and 
are no longer valid.

The secret is to run

mkpasswd -l -c  /etc/passwd
and
mkgroup -l -c  /etc/group

Also you have to run this if you're in a domain (because Cygwin retrieves 
only the local user names, not the domain names).


Thorsten


--
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/



Re: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Christopher Faylor
On Fri, Mar 16, 2007 at 10:49:36PM -, Thorsten Kampe wrote:
* Robert Peaslee (Fri, 16 Mar 2007 16:52:40 -0400)
 Actually, this information is incorrect.
 
 Windows XP stores the first username you choose and will associate your 
 current username to it regardless of what you change it to. Cygwin 
 stores nothing, it is asking Windows what your username is and getting a 
 response of what Windows tells it.

Cygwin asks Windows at first install about the user names and creates 
/etc/passwd. The problem is (or can be) that this list never gets updated 
even if the user names change or new user are added.

As Keith wrote:
Subsequent installations of CygWin utilize the aforementioned out of 
date username list, even though those usernames have been changed and 
are no longer valid.

The secret is to run

mkpasswd -l -c  /etc/passwd
and
mkgroup -l -c  /etc/group

Also you have to run this if you're in a domain (because Cygwin retrieves 
only the local user names, not the domain names).

Given that the OP admitted to wiping out his whole Cygwin installation, I
think it's a safe bet that he wiped out and regenerated his /etc/passwd.

cgf

--
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/



Re: Purging Old and Invalid User Names With Spaces

2007-03-15 Thread Larry Hall (Cygwin)

Keith Mitchell wrote:
In am running Windows XP SP2. I was having trouble with applications 
running under CygWin because I originally had spaces in my user names. I 
changed all the user names on my system, eliminating all the spaces in 
the user names. I then rebooted the computer just in case. Nothing 
changed. I then deleted my whole CygWin installation and reinstalled 
everything fresh from the web from scratch. Things were still broken in 
the same way!! I checked /etc/passwd file. All the user names were 
wrong. The user names were the same old user names I had in place before 
I changed the names eliminating the spaces. I do not know where CygWin 
found a list of those old and obsolete user names containing spaces, but 
it did find them somewhere. (probably in the registry). And it used them.


My question. How can I purge those old and now invalid user names so 
CygWin uses only the current, correct, and valid user names, user names 
without spaces?


Cygwin gets its information from Windows.  Make sure none of the user
names (local or on any workgroup/domain) that you want to use has spaces
under Windows.  Alternatively, you can go and edit the /etc/passwd file
to change the user names that you want to use.  Don't change SID though.
That's necessary to tie back into Windows.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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/



Re: Purging Old and Invalid User Names With Spaces

2007-03-15 Thread Igor Peshansky
On Wed, 14 Mar 2007, Keith Mitchell wrote:

 In am running Windows XP SP2. I was having trouble with applications
 running under CygWin because I originally had spaces in my user names. I
 changed all the user names on my system, eliminating all the spaces in
 the user names. I then rebooted the computer just in case. Nothing
 changed. I then deleted my whole CygWin installation and reinstalled
 everything fresh from the web from scratch. Things were still broken in
 the same way!! I checked /etc/passwd file. All the user names were
 wrong. The user names were the same old user names I had in place before
 I changed the names eliminating the spaces. I do not know where CygWin
 found a list of those old and obsolete user names containing spaces, but
 it did find them somewhere. (probably in the registry). And it used
 them.

 My question. How can I purge those old and now invalid user names so
 CygWin uses only the current, correct, and valid user names, user names
 without spaces?

Your /etc/passwd was generated when you installed Cygwin, and wasn't
regenerated since, so did not pick up the changes in your usernames.  If
you have not edited it, you can simply regenerate it using mkpasswd (see
man mkpasswd or the appropriate section of the Cygwin User's Guide for
details).  Alternatively, as Larry said, you can just edit that file and
fix up the usernames, which are in the first column.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for nothing left to lose...  -- Janis Joplin

--
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/



Purging Old and Invalid User Names With Spaces

2007-03-14 Thread Keith Mitchell
In am running Windows XP SP2. I was having trouble with applications 
running under CygWin because I originally had spaces in my user names. I 
changed all the user names on my system, eliminating all the spaces in 
the user names. I then rebooted the computer just in case. Nothing 
changed. I then deleted my whole CygWin installation and reinstalled 
everything fresh from the web from scratch. Things were still broken in 
the same way!! I checked /etc/passwd file. All the user names were 
wrong. The user names were the same old user names I had in place before 
I changed the names eliminating the spaces. I do not know where CygWin 
found a list of those old and obsolete user names containing spaces, but 
it did find them somewhere. (probably in the registry). And it used them.


My question. How can I purge those old and now invalid user names so 
CygWin uses only the current, correct, and valid user names, user names 
without spaces?


Thanks.

Keith Mitchell


--
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/



invalid user?

2002-10-05 Thread Uwe Mayer

Hallo,

I installed sshd as 'cygrunsrv -I sshd -p /usr/sbin/sshd -a -D -d' -
which worked. The server starts (cygrunsrv -S sshd) properly.
Then I tried to connect:

ssh localhost -l Uwe Mayer

Where Uwe Mayer is my regular W2k login.
The following is what was printed to the /var/log/sshd.log:


Connection from 127.0.0.1 port 1605

[..snip..]

debug1: attempt 0 failures 0
input_userauth_request: illegal user Uwe Mayer
Failed none for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method publickey
debug1: attempt 1 failures 1
Failed publickey for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method 
keyboard-interactive
debug1: attempt 2 failures 2
debug1: keyboard-interactive devs 
debug1: auth2_challenge: user=Uwe Mayer devs=
debug1: kbdint_alloc: devices ''
Failed keyboard-interactive for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method password
debug1: attempt 3 failures 3
Failed password for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method password
debug1: attempt 4 failures 4
Failed password for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
debug1: userauth-request for user Uwe Mayer service ssh-connection method password
debug1: attempt 5 failures 5
Failed password for illegal user Uwe Mayer from 127.0.0.1 port 1605 ssh2
Connection closed by 127.0.0.1
debug1: Calling cleanup 0x41c9c0(0x0)
debug1: Calling cleanup 0x41c9c0(0x0)


... what does illegal user mean? Doesn't it like the space in my
login name?
Is there any way arround it? My guess is that even supplying an
alternative to the /etc/passwd file (i.e. U-uwe) won't permit me to
login as ssh localhost -l uwe or?


Can somebody please help me here?
Thanks in advance
Uwe  mailto:[EMAIL PROTECTED]


--
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/