[1.7] passwd: useless if used with a logged on domain user

2009-03-20 Thread Julio Emanuel
Hi, I've been tracing some problems related to the installation scripts of ssh (more info on another mail later), and the root cause for one of the problems is the passwd misbehaving. The test case is very simple. Log on with a domain user on a cygwin shell. My particular case, it's an local Admin

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-21 Thread Corinna Vinschen
On Mar 20 18:43, Julio Emanuel wrote: > Hi, > > I've been tracing some problems related to the installation scripts of > ssh (more info on another mail later), and the root cause for one of > the problems is the passwd misbehaving. > The test case is very simple. Log on with a domain user on a cyg

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-22 Thread Corinna Vinschen
On Mar 21 11:10, Corinna Vinschen wrote: > On Mar 20 18:43, Julio Emanuel wrote: > > Hi, > > > > I've been tracing some problems related to the installation scripts of > > ssh (more info on another mail later), and the root cause for one of > > the problems is the passwd misbehaving. > > The test

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-22 Thread Júlio Costa
Hi Corinna, On Sun, Mar 22, 2009 at 10:09, Corinna Vinschen wrote: > On Mar 21 11:10, Corinna Vinschen wrote: >> On Mar 20 18:43, Julio Emanuel wrote: >> > Hi, >> > >> > I've been tracing some problems related to the installation scripts of >> > ssh (more info on another mail later), and the root

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-22 Thread Corinna Vinschen
On Mar 22 17:34, J?lio Costa wrote: > ~ $ # Just typed Ctrl-C. Not in the mood right now :) > ~ $ # And now for the interesting part: > ~ $ ./my_passwd.exe -S SYSTEM > my_passwd: unknown user SYSTEM The SYSTEM user is not in the user database. So that's an expected result. > ~ $ # Ooops. And wha

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-23 Thread Júlio Costa
On Sun, Mar 22, 2009 at 19:22, Corinna Vinschen wrote: > On Mar 22 17:34, J?lio Costa wrote: >> ~ $ # Just typed Ctrl-C. Not in the mood right now :) >> ~ $ # And now for the interesting part: >> ~ $ ./my_passwd.exe -S SYSTEM >> my_passwd: unknown user SYSTEM > > The SYSTEM user is not in the user

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-23 Thread Corinna Vinschen
On Mar 23 14:35, J?lio Costa wrote: > On Sun, Mar 22, 2009 at 19:22, Corinna Vinschen wrote: > > On Mar 22 17:34, J?lio Costa wrote: > >> ~ $ # Just typed Ctrl-C. Not in the mood right now :) > >> ~ $ # And now for the interesting part: > >> ~ $ ./my_passwd.exe -S SYSTEM > >> my_passwd: unknown use

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-23 Thread Julio Costa
On Mon, Mar 23, 2009 at 14:59, Corinna Vinschen wrote: > On Mar 23 14:35, J?lio Costa wrote: >> On Sun, Mar 22, 2009 at 19:22, Corinna Vinschen wrote: >> > On Mar 22 17:34, J?lio Costa wrote: >> >> ~ $ ./my_passwd.exe -S SYSTEM >> >> my_passwd: unknown user SYSTEM >> > >> > The SYSTEM user is not i

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-23 Thread Corinna Vinschen
On Mar 23 15:33, Julio Costa wrote: > On Mon, Mar 23, 2009 at 14:59, Corinna Vinschen wrote: > > Using CheckTokenMembership isn't quite the way to go.  If I understand > > you right that the idea is just checking if the token contains the > > well-known Administrators group, I'll check in something

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-23 Thread Julio Costa
On Mon, Mar 23, 2009 at 16:40, Corinna Vinschen wrote: > On Mar 23 15:33, Julio Costa wrote: >> On Mon, Mar 23, 2009 at 14:59, Corinna Vinschen wrote: >> > Using CheckTokenMembership isn't quite the way to go.  If I understand >> > you right that the idea is just checking if the token contains the

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-23 Thread Corinna Vinschen
On Mar 23 18:26, Julio Costa wrote: > On Mon, Mar 23, 2009 at 16:40, Corinna Vinschen wrote: > > On Mar 23 15:33, Julio Costa wrote: > >> On Mon, Mar 23, 2009 at 14:59, Corinna Vinschen wrote: > >> > Using CheckTokenMembership isn't quite the way to go.  If I understand > >> > you right that the id

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-28 Thread Charles Wilson
Corinna, Do your recent changes to passwd http://cygwin.com/ml/cygwin/2009-03/msg00799.html address this issue: http://www.cygwin.com/ml/cygwin/2008-10/msg00370.html 6. (Vista) error in setting cyg_server passwd expiry (Recap: 'passwd -e cyg_server' doesn't work when *current* user ('herb') is a

Re: [1.7] passwd: useless if used with a logged on domain user

2009-03-30 Thread Corinna Vinschen
On Mar 28 21:54, Charles Wilson wrote: > Corinna, > > Do your recent changes to passwd > http://cygwin.com/ml/cygwin/2009-03/msg00799.html > > address this issue: > http://www.cygwin.com/ml/cygwin/2008-10/msg00370.html > 6. (Vista) error in setting cyg_server passwd expiry > > (Recap: 'passwd -e