Re: problem with mkgroup -d DOMAIN

2004-01-22 Thread Igor Pechtchanski
Your version is only as recent as the one on the mirror you're using.  If
you used a stale mirror, you'll get an older version.
Igor

On Thu, 22 Jan 2004, Stefan Zachow wrote:

> Sorry Pierre,
>
> I replied to your personal address only, but it was bouncing back.
>
> uname -r says 1.5.5(0.94/3/2)
>
> when I have cygwin installed and update via setup, what I
> definitely did, why do I have an older version than expected?
> I thought it must be the latest version that I have.
>
>Stefan
>
> Pierre A. Humblet wrote:
>
> >Except that cygwin 1.5.6 is supposed to work even for users
> >who do not have that privilege.
> >That's why I still would like to know what version you are
> >running, and if you run Cygwin from the console or from
> >terminal services.

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Brian Ford
On Thu, 22 Jan 2004, Stefan Zachow wrote:
> Pierre Humbelt wrote:
> > api_fatal ("CreateFileMapping %s, %E.  Terminating.", mapname);
> >The *** in front is added elsewhere, but you are missing the space
> >after CreateFileMapping and the mapname (which could be null).
> >
> I see two formatting arguments but only one parameter. Is that right?
>
Yes, the %E is short hand for "Win32 error %d", GetLastError()
essentially.

> >Are the non privileged users running from the console or from
> >terminal services?
> >
> I am not sure whether I understand your question correctly.
> The non privilieged users connect from any Windows system
> via rdesktop to the Windows 2003 server and are trying to
> open a cygwin shell on the Remotedesktor.
>
For future reference, this means termial services (ie. not on the
console).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Pierre A. Humblet
On Thu, Jan 22, 2004 at 03:55:44PM +0100, Stefan Zachow wrote:
> Now I have version 1.5.6(0.108/3/2).
> When was this one released?
> 
> Shall I revert the privilege stuff to test again?

Yes please.

About mail bouncing back, my personal mail goes to
my ISP, Verizon, which is down. The mailing lists go 
to my PC at home (exim on Win98), which appears to be
more reliable!

Pierre

--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Stefan Zachow
Now I have version 1.5.6(0.108/3/2).
When was this one released?
Shall I revert the privilege stuff to test again?

  Stefan



--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Stefan Zachow
Sorry Pierre,

I replied to your personal address only, but it was bouncing back.

uname -r says 1.5.5(0.94/3/2)

when I have cygwin installed and update via setup, what I
definitely did, why do I have an older version than expected?
I thought it must be the latest version that I have.
  Stefan

Pierre A. Humblet wrote:

Except that cygwin 1.5.6 is supposed to work even for users
who do not have that privilege.
That's why I still would like to know what version you are
running, and if you run Cygwin from the console or from
terminal services.
 



--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Pierre A. Humblet
On Thu, Jan 22, 2004 at 11:48:26AM +0100, Stefan Zachow wrote:
> Thank you all for your help!
> 
> the 'global object privilege' was the reason for
> cygwin not running on the Win2003 Server.
 
Except that cygwin 1.5.6 is supposed to work even for users
who do not have that privilege.
That's why I still would like to know what version you are
running, and if you run Cygwin from the console or from
terminal services.

Pierre

--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Stefan Zachow
Thank you all for your help!

the 'global object privilege' was the reason for
cygwin not running on the Win2003 Server.
As a matter of fact. The original question
started in another thread first and moved to
this one due to two seperate problems.
Do they have the "create global object" privilege? If not, try
 to assign it. 

As soon as the latest stable Samba version is released
I try to check for the persistence of the mkgroup problem.
thanks again

  Stefan



--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Corinna Vinschen
On Jan 22 09:32, Stefan Zachow wrote:
> Hi Pierre,
> >So, what version of Cygwin are you using?
> >
> cygcheck -V says 1.38 (is it the version number you needed to know?)
> I made an update 2 days ago.

No, not the version of cygcheck, the version of cygwin.  `uname -r'
would show that.

Corinna

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

--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Corinna Vinschen
On Jan 22 09:32, Stefan Zachow wrote:
> >Do they have the "create global object" privilege? If not, try
> > to assign it.
> >
> Here I'm lost. How do I do this?

Start -> All Programs -> Control Panel -> Adminstrative Tools ->
Domain Security Policy

In there is a group of settings called "User Rights Assignment".
You'll find it there.

Corinna

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

--
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: problem with mkgroup -d DOMAIN

2004-01-22 Thread Stefan Zachow
Hi Pierre,

thanks first for looking at my problem!

Regarding the CreateFileMapping problem, the message you report is
  *** CreateFileMapping, Win32 error 0. Terminating.
but the code in Cygwin is
api_fatal ("CreateFileMapping %s, %E.  Terminating.", mapname);
The *** in front is added elsewhere, but you are missing the space
after CreateFileMapping and the mapname (which could be null).
I see two formatting arguments but only one parameter. Is that right?

So, what version of Cygwin are you using?

cygcheck -V says 1.38 (is it the version number you needed to know?)
I made an update 2 days ago.
From a cmd window in c:\cygwin\bin, what does
strace true produce?
it gives the same result:

*** CreateFileMapping, Win32 error 0.  Terminating.

Are the non privileged users running from the console or from
terminal services? 

I am not sure whether I understand your question correctly.
The non privilieged users connect from any Windows system
via rdesktop to the Windows 2003 server and are trying to
open a cygwin shell on the Remotedesktor.
Do they have the "create global object" privilege? If not, try
 to assign it.
Here I'm lost. How do I do this?

You say it's working on Win2000. What service pack? Also, on that
machine, what are the answers to the 2 questions above?
SP 4 - 'strace true' prints out almost everything I can imagine
starting with Program name: C:\cygwin\bin\true.exe
  Stefan



--
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: problem with mkgroup -d DOMAIN

2004-01-21 Thread Pierre A. Humblet


Stefan Zachow wrote:
> 
> Dear cygwin experts,
> 
> I encountered some problems with the mkgroup command during
> my trial to get cygwin running on a Windows 2003 server machine
> (Topic: running the latest cygwin on a windows 2003 server)
> 
> The domain controller is a Linux system running Samba for file
> system sharing.
> 
> The 'mkpasswd -d DOMAIN' command works fine and I did
> append this information to /etc/passwd
> 
> The 'mkgroup -d DOMAIN' command, however, failed for
> some reason I don't know, yet. The output is:
> 
> LookupAccountName (\\Host, Domain Admins) failed with error 1332
> LookupAccountName (\\Host, Domain Users) failed with error 1332
> 
> For the entire cygwin tree the user of the files is administrator
> and the group is mkgroup (!?). Even with chgrp I am not able
> to temporarily change the group to 'Users' for example.
> 
> Actually, even after reading the user's guide I have some problems
> on understanding the grouping scheme. Why do I have the following
> entry in my /etc/group?
> 
> mkgroup-1-d:S-1-5-32-545:10545
> 
> and how is it mapped to the users that are taken from the
> domain controller generated passwd database?

Edit /etc/group by hand and place this in it:

root:S-1-5-32-544:0:
SYSTEM:S-1-5-18:18:
Administrators:S-1-5-32-544:544:
Users:S-1-5-32-545:545:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Remote Desktop Users:XXX:900:   where  is the sid for 
   Remote Desktop Users that you have in /etc/passwd (I think).

I can make more suggestions if you send your passwd file.

Regarding the CreateFileMapping problem, the message you report is
   *** CreateFileMapping, Win32 error 0. Terminating.
but the code in Cygwin is

 api_fatal ("CreateFileMapping %s, %E.  Terminating.", mapname);
The *** in front is added elsewhere, but you are missing the space
after CreateFileMapping and the mapname (which could be null).

So, what version of Cygwin are you using?

>From a cmd window in c:\cygwin\bin, what does
strace true
produce?

Are the non privileged users running from the console or from
terminal services? 
Do they have the "create global object" privilege? If not, try
  to assign it.
You say it's working on Win2000. What service pack? Also, on that
machine, what are the answers to the 2 questions above?

Pierre

--
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: problem with mkgroup -d DOMAIN

2004-01-21 Thread Stefan Zachow
Sorry, I forgot to ask:

what are the default permissions and user/group combinations
after cygwin install?
I have administrator/mkpasswd with access code 750
over the entire cygwin tree.
Should I simply change the group to somethin like 'Users'?

  Stefan



--
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: problem with mkgroup -d DOMAIN

2004-01-21 Thread Stefan Zachow
Dear Corinna,

although I won't get the group information, it must
be possible to create one manually. What is the
typical syntax of the group info returned by
mkgroup -d DOMAIN?
I could try adding that stuff since I cannot persuade
our domain controller to answer correctly.
Setting up a new Samba seems to be a non trivial
task, was the information I got from the administrator
of our server.
  Stefan

I heard about that problem once already and it seems to happen only
with Samba domain controllers.  The LookupAccountName system call
gets no information but an error message.  1332 means
 
 No mapping between account names and security IDs was done.

So the Samba server returns a list of group names but a LookupAccountName
to get the SID fails.
 

The mkgroup name means, mkgroup wasn't able to create the list of
groups appropriately.




--
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: problem with mkgroup -d DOMAIN

2004-01-21 Thread Corinna Vinschen
On Jan 21 12:24, Stefan Zachow wrote:
> Dear cygwin experts,
> 
> I encountered some problems with the mkgroup command during
> my trial to get cygwin running on a Windows 2003 server machine
> (Topic: running the latest cygwin on a windows 2003 server)
> 
> The domain controller is a Linux system running Samba for file
> system sharing.
> 
> The 'mkpasswd -d DOMAIN' command works fine and I did
> append this information to /etc/passwd
> 
> The 'mkgroup -d DOMAIN' command, however, failed for
> some reason I don't know, yet. The output is:
> 
> LookupAccountName (\\Host, Domain Admins) failed with error 1332
> LookupAccountName (\\Host, Domain Users) failed with error 1332

I heard about that problem once already and it seems to happen only
with Samba domain controllers.  The LookupAccountName system call
gets no information but an error message.  1332 means
  
  No mapping between account names and security IDs was done.

So the Samba server returns a list of group names but a LookupAccountName
to get the SID fails.

> 
> For the entire cygwin tree the user of the files is administrator
> and the group is mkgroup (!?). Even with chgrp I am not able
> to temporarily change the group to 'Users' for example.
> 
> Actually, even after reading the user's guide I have some problems
> on understanding the grouping scheme. Why do I have the following
> entry in my /etc/group?
> 
> mkgroup-1-d:S-1-5-32-545:10545

The mkgroup name means, mkgroup wasn't able to create the list of
groups appropriately.

Sorry, no solution yet.

Corinna

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

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