delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/15/10:02:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: ics-server.interface-net.com: lbakken owned process doing -bs
Date: Mon, 15 Oct 2001 06:55:24 -0700 (PDT)
From: Luke Bakken <luke_bakken AT yahoo DOT com>
X-X-Sender: <lbakken AT ics-server DOT interface-net DOT com>
Reply-To: <luke_bakken AT yahoo DOT com>
To: "Bui, Hung" <Hung DOT Bui AT Nextel DOT com>
cc: "'Pavel Tsekov'" <ptsekov AT syntrex DOT com>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: How to make 'mkpasswd -d' a faster process?
In-Reply-To: <D456C897C3DBD311816F0008C716D05107BBC169@NHQNTEX02.nextel.com>
Message-ID: <Pine.BSO.4.31.0110150653110.31381-100000@ics-server.interface-net.com>
MIME-Version: 1.0

Install ActiveState Perl and the Roth Win32::Perms module on your machine,
and run this script with your account information to get the numbers.  You
can hand-create the /etc/passwd entry with this info:

use Win32::Perms;

$Account = "DOMAIN\\lukeb";
$Sid = Win32::Perms::ResolveSid( $Account );
$Account = "DOMAIN\\Domain Users";
$GroupSid = Win32::Perms::ResolveSid( $Account );

print "SID: $Sid\n";
print "Group SID: $GroupSid\n";


In the above example. it will get the user and group SID for lukeb in
group "Domain Users" on DOMAIN.

If you need assistance, email me privately.

Luke

On Mon, 15 Oct 2001, Bui, Hung wrote:

> Dear Pavel,
>
> I am logging into the company domain name.  In fact, my company does not
> allow anyone to log in to the local machine.
>
> Thanks,
> Hung
>
> -----Original Message-----
> From: Pavel Tsekov [mailto:ptsekov AT syntrex DOT com]
> Sent: Monday, October 15, 2001 9:20 AM
> To: Bui, Hung
> Cc: 'cygwin AT cygwin DOT com'
> Subject: Re: How to make 'mkpasswd -d' a faster process?
>
> When you login to you workstation do you login to
> the localdomain (name for this is the same as
> machine name) or to the company domain ?
>
> "Bui, Hung" wrote:
> >
> > Dear Luke,
> >
> > Thanks for your advise.
> >
> > However, the problem is that the <domain> has more than 5000 entries.  I
> > wonder if there is anyway to specify the exact entry that you want to
> > retrieve the information for.  I do not understand how MS domain work, but
> > should there be a way you can retrieve entry by keyword?
> >
> > Thanks again,
> > Hung.
> >
> > -----Original Message-----
> > From: Luke Bakken [mailto:luke_bakken AT yahoo DOT com]
> > Sent: Friday, October 12, 2001 4:50 PM
> > To: Bui, Hung
> > Cc: 'cygwin AT cygwin DOT com'
> > Subject: Re: How to make 'mkpasswd -d' a faster process?
> >
> > Try specifying the domain to which you belong explicitly:
> >
> > mkpasswd -d DOMAIN >> /etc/passwd
> >
> > Luke
> >
> > On Fri, 12 Oct 2001, Bui, Hung wrote:
> >
> > > Dear all,
> > >
> > > I am a newbie to cygwin here.
> > >
> > > Recently, I installed cygwin 1.3.3.  I tried to turn on ntsec, however,
> > when
> > > I run:
> > >
> > > mkpasswd -d > /etc/passwd
> > >
> > > mkpasswd traverses the whole directory tree of my company to get
> > everyone's
> > > name.  I have it run almost all day and mkpasswd still has not found my
> id
> > > yet.
> > >
> > > Is there any way to specify the 'user name' to be extracted from the
> > domain
> > > directory?  Is there a faster version of mkpasswd?
> > >
> > > BTW, using '| grep <username>' does not help because it takes as long to
> > > traverse the whole directory.
> > >
> > > Thanks in advance,
> > > Hung
> > >
> > > hung DOT bui AT Nextel DOT com
> > >
>
> --
> 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/
>


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019