Re: 1.3.10 and setgid

2002-03-06 Thread Lapo Luchini

 Is that NT4 server a DC?  If so, try if `mkgroup -d' returns
 the Domaenenbenutzer (Domain Users) group.

 I just tried `mkgroup -l' on a german NT4 Wkst and I got the group 513:

I get group Domain Users - 10513 in mkgroup -d but no group 513 in mkgroup
-l...
(yes, my PC is a 2k PDC, and activetree is active (but I think I'll remove it
soon as I never used it other that with a simple workgroup))

$ mkgroup -l
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
Administrators:S-1-5-32-544:544:
Users:S-1-5-32-545:545:
Guests:S-1-5-32-546:546:
Backup Operators:S-1-5-32-551:551:
Replicator:S-1-5-32-552:552:
Server Operators:S-1-5-32-549:549:
Account Operators:S-1-5-32-548:548:
Print Operators:S-1-5-32-550:550:
Accesso compatibile precedente a Windows 2000:S-1-5-32-554:554:
Server RAS e IAS:S-1-5-21-1957994488-1303643608-1417001333-553:553:
DnsAdmins:S-1-5-21-1957994488-1303643608-1417001333-1104:1104:

$ mkgroup -d
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
...
Domain Users:S-1-5-21-1957994488-1303643608-1417001333-513:10513:
...

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP  X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



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




Re: 1.3.10 and setgid

2002-03-06 Thread Corinna Vinschen

On Wed, Mar 06, 2002 at 11:51:18AM +0100, Lapo Luchini wrote:
  Is that NT4 server a DC?  If so, try if `mkgroup -d' returns
  the Domaenenbenutzer (Domain Users) group.
 
  I just tried `mkgroup -l' on a german NT4 Wkst and I got the group 513:
 
 I get group Domain Users - 10513 in mkgroup -d but no group 513 in mkgroup
 -l...
 (yes, my PC is a 2k PDC, and activetree is active (but I think I'll remove it
 soon as I never used it other that with a simple workgroup))
 
 $ mkgroup -l
 Everyone:S-1-1-0:0:
 SYSTEM:S-1-5-18:18:
 Administrators:S-1-5-32-544:544:
 Users:S-1-5-32-545:545:
 Guests:S-1-5-32-546:546:
 Backup Operators:S-1-5-32-551:551:
 Replicator:S-1-5-32-552:552:
 Server Operators:S-1-5-32-549:549:
 Account Operators:S-1-5-32-548:548:
 Print Operators:S-1-5-32-550:550:
 Accesso compatibile precedente a Windows 2000:S-1-5-32-554:554:
 Server RAS e IAS:S-1-5-21-1957994488-1303643608-1417001333-553:553:
 DnsAdmins:S-1-5-21-1957994488-1303643608-1417001333-1104:1104:
 
 $ mkgroup -d
 Everyone:S-1-1-0:0:
 SYSTEM:S-1-5-18:18:
 ...
 Domain Users:S-1-5-21-1957994488-1303643608-1417001333-513:10513:
 ...

Ouch.  Ok, just set the gid to 513 in /etc/group or set your
primary group to 10513 in /etc/passwd and try again.

Did you ever read http://cygwin.com/cygwin-ug-net/ntsec.html ???
If you read it carefully, you'll see that you are free to change
/etc/passwd as well as /etc/group so that it fits your needs.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




Re: 1.3.10 and setgid

2002-03-06 Thread Lapo Luchini

 Ouch.  Ok, just set the gid to 513 in /etc/group or set your
 primary group to 10513 in /etc/passwd and try again.

Creating the group 513 by hand works perfectly, but nonetheless shouldn't
mkpasswd and mkgroup create automatically an usable system?
If I use -d on both I get the correct 10513 group, but creating both with -l
creates users in group 513 but creates no group 513.

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP  X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



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




Re: 1.3.10 and setgid

2002-03-06 Thread Corinna Vinschen

On Wed, Mar 06, 2002 at 12:43:00PM +0100, Lapo Luchini wrote:
  Ouch.  Ok, just set the gid to 513 in /etc/group or set your
  primary group to 10513 in /etc/passwd and try again.
 
 Creating the group 513 by hand works perfectly, but nonetheless shouldn't
 mkpasswd and mkgroup create automatically an usable system?
 If I use -d on both I get the correct 10513 group, but creating both with -l
 creates users in group 513 but creates no group 513.

Patches gratefully accepted.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




Re: 1.3.10 and setgid

2002-03-01 Thread Corinna Vinschen

On Thu, Feb 28, 2002 at 06:26:59PM +0100, Lapo Luchini wrote:
 I re-created that just before writing the message...
 
 Administrator@CYBERONE ~
 $ mkgroup -l
 Everyone:S-1-1-0:0:
 SYSTEM:S-1-5-18:18:

At that point, None should appear.  That's a valid group on all NT
systems since it's the default primary group for all users, domain
member or not.

I checked mkgroup on my system and it creats the None entry.
I think you will have to debug that on your system.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




Re: 1.3.10 and setgid

2002-03-01 Thread Gerrit P. Haase

Hallo Corinna,

Am 2002-03-01 um 11:44 schriebst du:

 On Thu, Feb 28, 2002 at 06:26:59PM +0100, Lapo Luchini wrote:
 I re-created that just before writing the message...
 
 Administrator@CYBERONE ~
 $ mkgroup -l
 Everyone:S-1-1-0:0:
 SYSTEM:S-1-5-18:18:

 At that point, None should appear.  That's a valid group on all NT
 systems since it's the default primary group for all users, domain
 member or not.

 I checked mkgroup on my system and it creats the None entry.
 I think you will have to debug that on your system.

How to debug this?
BTW, I have no entry in /etc/group with gid 513, that is my NT4.6a Server
box.  On the W2K Server to my right the group exists.

$ mkgroup -l
Jeder:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
Administratoren:S-1-5-32-544:544:
Benutzer:S-1-5-32-545:545:
...


I'm pretty sure that I never had this group.


Gerrit
-- 
=^..^=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/




Re: 1.3.10 and setgid

2002-02-28 Thread Bjoern Kahl AG Resy


 Hallo !

 wild guess 

On Thu, 28 Feb 2002, Lapo Luchini wrote:

 I think there's a ergression (at least on by box):

 $ ssh root@xxx
 setgid 513: Invalid argument

 Using 139 it works OK

 Did you check your /etc/passwd and or /etc/groups ?

 I have had the same problem some weeks ago, because of an to old
 passwd and groups file Just compare the output of mkpasswd with
 your current file

 Bjoern


-- 
+-+
| Dipl-Phys Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resyinformatikuni-klde   |
+-+


--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/




Re: 1.3.10 and setgid

2002-02-28 Thread Lapo Luchini

  $ ssh root@xxx
  setgid 513: Invalid argument
  Using 1.3.9 it works OK.
  Did you check your /etc/passwd and or /etc/groups ?

Seems fairly normal... has it changed format lately?
Uh.. yes, quite a bit I must admin ^^

Reinstalling 1.3.10...
setgid 513: Invalid argument

Nothing changed.

Strange though!

/etc/passwd
...
Administrator:unused_by_nt/2000/xp:500:513:U-LAPO\Administrator,S-1-5-21-etc-etc-etc:/home/Administrator:/bin/bash

...

/etc/group
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
Administrators:S-1-5-32-544:544:
Users:S-1-5-32-545:545:
Guests:S-1-5-32-546:546:
Backup Operators:S-1-5-32-551:551:
Replicator:S-1-5-32-552:552:
Server Operators:S-1-5-32-549:549:
Account Operators:S-1-5-32-548:548:
Print Operators:S-1-5-32-550:550:

no group is 513! 0_o

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP  X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



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




Re: 1.3.10 and setgid

2002-02-28 Thread Lapo Luchini

  /etc/group
  Everyone:S-1-1-0:0:
  SYSTEM:S-1-5-18:18:
  Administrators:S-1-5-32-544:544:
  Users:S-1-5-32-545:545:
  Guests:S-1-5-32-546:546:
  Backup Operators:S-1-5-32-551:551:
  Replicator:S-1-5-32-552:552:
  Server Operators:S-1-5-32-549:549:
  Account Operators:S-1-5-32-548:548:
  Print Operators:S-1-5-32-550:550:
 
  no group is 513! 0_o

 That's weird, actually.  You should have a group 513 which
 is either your native version of None on a standalone box
 or Domain Users if you're in a domain.

 Please check rebuilding with mkgroup again.  If mkgroup doesn't
 create a group 513, we have a glitch here.

 Corinna

I re-created that just before writing the message...

Administrator@CYBERONE ~
$ mkgroup -l
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
Administrators:S-1-5-32-544:544:
Users:S-1-5-32-545:545:
Guests:S-1-5-32-546:546:
Backup Operators:S-1-5-32-551:551:
Replicator:S-1-5-32-552:552:
Server Operators:S-1-5-32-549:549:
Account Operators:S-1-5-32-548:548:
Print Operators:S-1-5-32-550:550:
Accesso compatibile precedente a Windows 2000:S-1-5-32-554:554:
Server RAS e IAS:S-1-5-21-1957994488-1303643608-1417001333-553:553:
DnsAdmins:S-1-5-21-1957994488-1303643608-1417001333-1104:1104:

Administrator@CYBERONE ~
$ cygcheck -s

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Feb 28 18:25:49 2002

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 2

Path: C:\WINNT\system32
 C:\WINNT
 C:\WINNT\System32\Wbem
 C:\Programmi\Utility
 C:\Language\Cygnus\bin\
 C:\Language\Java2\bin
 C:\Programmi\MSSQL7\BINN
 C:\Programmi\Symantec\pcAnywhere\
 C:\Programmi\File comuni\Autodesk Shared\
 C:\PROGRA~1\BITKEE~1
 C:\Language\Tcl\bin

 F:\Java2\JET\BIN

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN = `ntsec'
Path =
`C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programmi\Utility;C:\Language\Cygnus\bin\;C:\Language\Java2\bin;C:\Programmi\MSSQL7\BINN;C:\Programmi\Symantec\pcAnywhere\;C:\Programmi\File
comuni\Autodesk
Shared\;C:\PROGRA~1\BITKEE~1;C:\Language\Tcl\bin;;F:\Java2\JET\BIN'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS4334Mb  93% CP CS UN PA FC Skuld-SYS
d:  hd  NTFS   15451Mb  84% CP CS UN PA FC Skuld-NET
e:  hd  NTFS2047Mb  72% CP CS UN PA FC Skuld-STORE
f:  hd  NTFS4337Mb  24% CP CS UN PA FC Skuld-LANG
g:  fd   N/AN/A
k:  cd  CDFS 647Mb 100%CS UN   Music 14
l:  cd   N/AN/A
m:  cd   N/AN/A

.  /cygdrive  userbinmode,noumount
F:\Cygnus  /  system  binmode
F:/Cygnus/bin  /usr/bin   system  binmode
F:/Cygnus/lib  /usr/lib   system  binmode

Found: C:\Language\Cygnus\bin\bash.exe
Found: C:\Language\Cygnus\bin\cat.exe
Found: C:\Language\Cygnus\bin\cpp.exe
Found: C:\Language\Cygnus\bin\find.exe
Found: C:\Language\Cygnus\bin\gcc.exe
Found: C:\Language\Cygnus\bin\gdb.exe
Found: C:\Language\Cygnus\bin\ld.exe
Found: C:\Language\Cygnus\bin\ls.exe
Found: C:\Language\Cygnus\bin\make.exe
Found: C:\Language\Cygnus\bin\sh.exe

   56k 2000/12/03 C:\Language\Cygnus\bin\cygbz21.0.dll
  621k 2002/01/16 C:\Language\Cygnus\bin\cygcrypto.dll
   45k 2001/04/25 C:\Language\Cygnus\bin\cygform5.dll
   35k 2002/01/09 C:\Language\Cygnus\bin\cygform6.dll
   19k 2002/02/20 C:\Language\Cygnus\bin\cyggdbm.dll
   17k 2001/06/28 C:\Language\Cygnus\bin\cyghistory4.dll
   22k 2001/12/13 C:\Language\Cygnus\bin\cygintl-1.dll
   21k 2001/06/20 C:\Language\Cygnus\bin\cygintl.dll
   81k 2000/12/05 C:\Language\Cygnus\bin\cygitcl30.dll
   35k 2000/12/05 C:\Language\Cygnus\bin\cygitk30.dll
   26k 2001/04/25 C:\Language\Cygnus\bin\cygmenu5.dll
   20k 2002/01/09 C:\Language\Cygnus\bin\cygmenu6.dll
  156k 2001/04/25 C:\Language\Cygnus\bin\cygncurses++5.dll
  175k 2002/01/09 C:\Language\Cygnus\bin\cygncurses++6.dll
  226k 2001/04/25 C:\Language\Cygnus\bin\cygncurses5.dll
  202k 2002/01/09 C:\Language\Cygnus\bin\cygncurses6.dll
   15k 2001/04/25 C:\Language\Cygnus\bin\cygpanel5.dll
   12k 2002/01/09 C:\Language\Cygnus\bin\cygpanel6.dll
   40k 2001/11/21 C:\Language\Cygnus\bin\cygpcre.dll
   39k 2001/11/21 C:\Language\Cygnus\bin\cygpcreposix.dll
  170k 2002/01/21 C:\Language\Cygnus\bin\cygpng2.dll
  108k 2001/06/28 C:\Language\Cygnus\bin\cygreadline4.dll
  156k 2002/01/16 C:\Language\Cygnus\bin\cygssl.dll
  390k 2000/12/05 C:\Language\Cygnus\bin\cygtcl80.dll
5k 2000/12/05 C:\Language\Cygnus\bin\cygtclpip80.dll
   10k 2000/12/05 C:\Language\Cygnus\bin\cygtclreg80.dll
  623k 2000/12/05 C:\Language\Cygnus\bin\cygtk80.dll
   50k 2002/01/20 C:\Language\Cygnus\bin\cygz.dll
  751k 2002/02/25 C:\Language\Cygnus\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.10
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 51
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin