public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: mkgroup: Could not get group info from samba share
@ 2011-03-31  0:02 Christian Gelinek
  2011-03-31 17:49 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Gelinek @ 2011-03-31  0:02 UTC (permalink / raw)
  To: cygwin

-----Original Message-----
From: Cygwin On Behalf Of Corinna Vinschen
Sent: Wednesday, 30 March 2011 6:51 PM
Subject: Re: mkgroup: Could not get group info from samba share
> 
> On Mar 30 10:53, Christian Gelinek wrote:
> > Here, I was out of luck as this command did not return anything. I also
> > tried
> > 
> >   mkgroup -U username -S- -D my_samba_box
> > 
> > but that reported 'mkgroup (102): [1355] The specified domain either does
> > not exist or could not be contacted'.
> 
> Try
> 
>   mkgroup -U username -S- -L my_samba_box
> 
> When you use -D, it's looking for the domain name "my_samba_box", but
> you're trying to get the group list from the machine called
> "my_samba_box".  See mkgroup --help and the User's Guide:
> 

In my previous message, I mentioned that I already tried that and it did not return anything. Only because it didn't work was that I tried the -D option which I found in the documentation. Any suggestions why the list returned by 

  mkgroup -U username -S- -L my_samba_box

is empty?

Regards,
Christian



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mkgroup: Could not get group info from samba share
  2011-03-31  0:02 mkgroup: Could not get group info from samba share Christian Gelinek
@ 2011-03-31 17:49 ` Corinna Vinschen
  2011-04-01  0:40   ` Christian Gelinek
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2011-03-31 17:49 UTC (permalink / raw)
  To: cygwin

On Mar 31 09:46, Christian Gelinek wrote:
> -----Original Message-----
> From: Cygwin On Behalf Of Corinna Vinschen
> Sent: Wednesday, 30 March 2011 6:51 PM
> Subject: Re: mkgroup: Could not get group info from samba share
> > 
> > On Mar 30 10:53, Christian Gelinek wrote:
> > > Here, I was out of luck as this command did not return anything. I also
> > > tried
> > > 
> > >   mkgroup -U username -S- -D my_samba_box
> > > 
> > > but that reported 'mkgroup (102): [1355] The specified domain either does
> > > not exist or could not be contacted'.
> > 
> > Try
> > 
> >   mkgroup -U username -S- -L my_samba_box
> > 
> > When you use -D, it's looking for the domain name "my_samba_box", but
> > you're trying to get the group list from the machine called
> > "my_samba_box".  See mkgroup --help and the User's Guide:
> > 
> 
> In my previous message, I mentioned that I already tried that and it did not return anything. Only because it didn't work was that I tried the -D option which I found in the documentation. Any suggestions why the list returned by 
> 
>   mkgroup -U username -S- -L my_samba_box
> 
> is empty?

Erm, serves me right to use copy/paste.  What I meant to write is

  mkgroup -U groupname -S- -L my_samba_box

You have to specify the groupname(s) as args to the -U option when
using the mkgroup command.  Using the username doesn't help.


Corinna

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: mkgroup: Could not get group info from samba share
  2011-03-31 17:49 ` Corinna Vinschen
@ 2011-04-01  0:40   ` Christian Gelinek
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Gelinek @ 2011-04-01  0:40 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: Cygwin On Behalf Of Corinna Vinschen
> Sent: Friday, 1 April 2011 1:13 AM
> Subject: Re: mkgroup: Could not get group info from samba share
> 
> On Mar 31 09:46, Christian Gelinek wrote:
> > -----Original Message-----
> > From: Cygwin On Behalf Of Corinna Vinschen
> > Sent: Wednesday, 30 March 2011 6:51 PM
> > Subject: Re: mkgroup: Could not get group info from samba share
> > > 
> > > On Mar 30 10:53, Christian Gelinek wrote:
> > > > Here, I was out of luck as this command did not return anything. I also
> > > > tried
> > > > 
> > > >   mkgroup -U username -S- -D my_samba_box
> > > > 
> > > > but that reported 'mkgroup (102): [1355] The specified domain either does
> > > > not exist or could not be contacted'.
> > > 
> > > Try
> > > 
> > >   mkgroup -U username -S- -L my_samba_box
> > > 
> > > When you use -D, it's looking for the domain name "my_samba_box", but
> > > you're trying to get the group list from the machine called
> > > "my_samba_box".  See mkgroup --help and the User's Guide:
> > > 
> > 
> > In my previous message, I mentioned that I already tried that and it did not return anything. Only because it didn't work was that I tried the -D option which I found in the documentation. Any suggestions why the list returned by 
> > 
> >   mkgroup -U username -S- -L my_samba_box
> > 
> > is empty?
> 
> Erm, serves me right to use copy/paste.  What I meant to write is
> 
>   mkgroup -U groupname -S- -L my_samba_box
> 
> You have to specify the groupname(s) as args to the -U option when
> using the mkgroup command.  Using the username doesn't help.

Thanks a lot, should have guessed that myself! Works like a charm now - finally, correct flags and users/groups from my Samba share in Cygwin!

Christian



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mkgroup: Could not get group info from samba share
  2011-03-30  5:40 Christian Gelinek
@ 2011-03-30  8:35 ` Corinna Vinschen
  0 siblings, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2011-03-30  8:35 UTC (permalink / raw)
  To: cygwin

On Mar 30 10:53, Christian Gelinek wrote:
> Here, I was out of luck as this command did not return anything. I also
> tried
> 
>   mkgroup -U username -S- -D my_samba_box
> 
> but that reported 'mkgroup (102): [1355] The specified domain either does
> not exist or could not be contacted'.

Try

  mkgroup -U username -S- -L my_samba_box

When you use -D, it's looking for the domain name "my_samba_box", but
you're trying to get the group list from the machine called
"my_samba_box".  See mkgroup --help and the User's Guide:

http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup


Corinna

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* mkgroup: Could not get group info from samba share
@ 2011-03-30  5:40 Christian Gelinek
  2011-03-30  8:35 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Gelinek @ 2011-03-30  5:40 UTC (permalink / raw)
  To: cygwin

Hi everyone!

In my network, I've got a samba server running on a linux machine and I
would like to get the correct user and group names under Cygwin
(CYGWIN_NT-6.1-WOW64 1.7.8(0.236/5/3) 2011-03-01 09:36) under Windows 7
(Windows 7 Professional N Ver 6.1 Build 7600).

Eventually, I found a very helpful forum thread 
(http://omgili.com/mailinglist/cygwin/cygwin/com/001b01ca597832cbb90098632b0
0com.html)
which got me onto the right track for the user names.

If I understood correctly, 
 1. samba takes the user (UID) and group (GID) IDs from the machine it is
running on and somehow generates a Windows SID from that information. 

 2. This information is sent to the windows machine, which then interprets
(or looks up) the correct user and group names as I can see in the Windows
Explorer for the files on my samba drives.

 3. Cygwin doesn't seem to have this remote-lookup-mechanism built-in, so
the /etc/passwd file has to list the Windows SIDs for every user (for the
local machine as well as for the samba machine) and the /etc/group file has
to list the Windows SIDs for every group in order for Cygwin (e.g. the ls -l
command) to report the correct user/group for each file.

The forum thread mentioned earlier suggests to use 

  mkpasswd -U username -S- -L my_samba_box

to get the /etc/passwd entries for the specified user(s) from the samba
server, which worked for me - that means, the user names reported by ls -l
include 'my_samba_box-username' for every file. The group names are still
'????????' (GID=4294967295), which suggests that the Windows SID for the
group reported by samba is not (yet) understood by Cygwin.

So I tried the equivalent command for the groups as suggested by the
aforementioned forum thread:

  mkgroup -U username -S- -L my_samba_box

Here, I was out of luck as this command did not return anything. I also
tried

  mkgroup -U username -S- -D my_samba_box

but that reported 'mkgroup (102): [1355] The specified domain either does
not exist or could not be contacted'.

Any help on how to get the group-SID-mapping from the samba server so I can
add that information to my /etc/group file would be highly appreciated.

Thanks,
Christian



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-01  0:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31  0:02 mkgroup: Could not get group info from samba share Christian Gelinek
2011-03-31 17:49 ` Corinna Vinschen
2011-04-01  0:40   ` Christian Gelinek
  -- strict thread matches above, loose matches on Subject: below --
2011-03-30  5:40 Christian Gelinek
2011-03-30  8:35 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).