delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/12/03:16:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 12 Jul 2002 09:16:27 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: cron and NT domains
Message-ID: <20020712091627.B10982@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Cygwin <cygwin AT cygwin DOT com>
References: <20020711172057 DOT GE1852 AT tishler DOT net> <20020711164840 DOT B1660 AT SmartSC DOT com>
Mime-Version: 1.0
In-Reply-To: <20020711164840.B1660@SmartSC.com>
User-Agent: Mutt/1.3.22.1i

On Thu, Jul 11, 2002 at 04:48:40PM -0700, David MacMahon wrote:
> On Thu, Jul 11, 2002 at 01:20:57PM -0400, Jason Tishler wrote:
> > Do you have an entry for your login domain?  If not, add one.  If so,
> > then I don't know how to help you more.
> 
> Yes, I have an entry for my login domain ID.  Without this, I can't
> login via telnet/ftp (I think).  One other interesting piece of info is
> that mkpasswd fails when listing my login domain, but when listing my
> PC's domain.  When listing my login domain, I get a message something like
> "mkpasswd: [5] Access is denied."  I'm not at work today, so I can't
> verify that until tomorrow, but that's the basic concept.

Are you able to request just your own account as in

  mkpasswd -g -u <yourname>?

I assume your servers are running a active directory domain?  It's
possible that your admin(s) did restrict access to the network
managment functionality so that could be a reason you're unable to
get that info.

If so, create a /etc/passwd entry by hand.  It should look like

  jatis:<uid>:<gid>:U-PALO-ALTO\JATIS,<SID>:/home/jatis:/bin/bash

How to get the SID?  Just look into the registry:

  ls -l /proc/registry/HKEY_USERS

There are two registry keys begining with S-1-5-21-.  Use the one
w/o the trailing "_Classes".  Use the last number as uid.  Enter
10513 as gid.  Edit /etc/group.

Add or modify a group 10513:

  domusers:<SID>:10513:

As SID use the same as for your user entry, except for the last
number in the SID, which you have used for your uid.  Replace it
by 513.

Example:

$ ls -l /proc/registry/HKEY_USERS
total 0
dr-xr-x---   14 root     SYSTEM          0 Jun 30 16:34 S-1-5-21-1844237615-436374069-1060284298-1003
dr-xr-x---    1 root     SYSTEM          0 Feb 24 17:25 S-1-5-21-1844237615-436374069-1060284298-1003_Classes

==> /etc/passwd:

jatis:1003:10513:U-PALO-ALTO\JATIS,S-1-5-21-1844237615-436374069-1060284298-1003:/home/jatis:/bin/bash

==> /etc/group:

domusers:S-1-5-21-1844237615-436374069-1060284298-513:10513:


Perhaps that helps,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
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/

- Raw text -


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