Mail Archives: cygwin/2014/10/28/08:51:06
X-Recipient: | archive-cygwin AT delorie DOT com
|
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
|
| :list-unsubscribe:list-subscribe:list-archive:list-post
|
| :list-help:sender:message-id:date:subject:from:to:mime-version
|
| :content-type:content-transfer-encoding; q=dns; s=default; b=jmt
|
| ExMJK8bxNQJqWrR70uIU8epG5eMWCklaXKBgcL2MhON2Ykrt/qsp79+NWkTXKHMT
|
| HSyW3DIE6eVIiNcW2vT6QEcLiCB1wN9ZEqFynU4UcAWjSfNi6R1DO5xEF0Pd26CE
|
| d2CVt+YMIXLHwDXOvPsQ5hsY90k5Gr1AE2xXQdrI=
|
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
|
| :list-unsubscribe:list-subscribe:list-archive:list-post
|
| :list-help:sender:message-id:date:subject:from:to:mime-version
|
| :content-type:content-transfer-encoding; s=default; bh=oJlVUBxK4
|
| vskEb1TPz5v/lNw16I=; b=MN2xbC4Rz3IjJLhTwzKqZbkF0Dn2e/IE+IPMI5/+x
|
| JpvfOAnYgO2D8+swgANkm2lr8EcAwCTkdU5kK5hY27s4fF/6SxFSa7Bvsd5AX39T
|
| rrYENmRwGcjJL0o+TsZ94xCdHMlqJ/daTHKUtc++6mUnvhBGDBlgi34Mlm5qji58
|
| dA=
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
|
Authentication-Results: | sourceware.org; auth=none
|
X-Virus-Found: | No
|
X-Spam-SWARE-Status: | No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
|
X-HELO: | smtp-vbr14.xs4all.nl
|
Message-ID: | <56f1e6ae0c5e30cb5745eed0af9efe39.squirrel@webmail.xs4all.nl>
|
Date: | Tue, 28 Oct 2014 13:50:44 +0100
|
Subject: | Mild amazement (questions) about the output of mkpasswd (1.7.33). Corinna?
|
From: | "Houder" <houder AT xs4all DOT nl>
|
To: | cygwin AT cygwin DOT com
|
User-Agent: | SquirrelMail/1.4.18
|
MIME-Version: | 1.0
|
X-IsSubscribed: | yes
|
Hi Corinna,
As adviced by you, I replaced the "cygwin package" with the test version (1.7.33) on my "Cygwin-32" ...
Let us assume, I am NOT interested in "Windows domains" etc. and that I would like to keep my "own" mapping
between SIDs and uids/gids ... it appears to me, that both mkpasswd and mkgroup are no longer of any help to
me, as both appear to apply "some fixed (automatic) mapping" between SIDs and uids/gids ... Right?
Initially I left the passwd, group and nsswitch.conf untouched ... (as noted, I am NOT connected to a domain,
and I have never been troubled by the slowness as result of the passwd/group files - small files).
As the output of mkpasswd (and perhaps the "whole" changover in 1.7.33) left me with a question (questions?),
I subsequently removed the aformentioned files ...
Questions:
- why does 'mkpasswd -l Seven -u Henri' report differently from 'mkpasswd -l -u Henri'?
- uid: 4244636648 vs 197608 ...
- why does MACHINE show up as a prefix to LOCAL USER in 'mkpasswd -L Seven -u Henri', but NOT
in 'mkpasswd -L -u Henri'?
- name: Seven+Henri vs Henri ...
- manual says: -L, generate username WITH machine prefix ...
Just trying to make sense of it all ...
Henri
@@ uname -a
CYGWIN_NT-6.1-WOW64 Seven 1.7.33(0.279/5/3) 2014-10-27 22:21 i686 Cygwin
@@ id
uid=197608(Henri) gid=197121(None)
groups=197121(None),197615(HelpLibraryUpdaters),545(Users),4(INTERACTIVE),66049(CONSOLE LOGON),11(Authenticated
Users),15(This Organization),113(Local account),4095(CurrentSession),66048(LOCAL),262154(NTLM
Authentication),401408(Medium Mandatory Level)
# more "info" than I would like to see (yes, I know you think differently ...)
@@ # Seven is a "stand-alone" machine ...
@@ # passwd, group, nsswitch.conf have been removed ... for now
@@ mkpasswd -l -u Henri
Henri:*:197608:197121:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
# 197608 - 1000 = 196608 (= 0x30000 ... Oh, the result of the 'fixed' mapping of S-1-5-21-X-Y-Z-RID)
@@ mkpasswd -L -u Henri # A
Henri:*:197608:197121:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
# where is the machine prefix (= Seven) before the local user name (= Henri)?
@@ mkpasswd -l Seven -u Henri
Henri:unused:4244636648:4244636161:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
# 4244636648 - 1000 = 4244635648 (= 0xfd000000 ... huh? I did NOT encounter that number in the documentation)
@@ mkpasswd -L Seven -u Henri
Seven+Henri:unused:4244636648:4244636161:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
# ... NOW the local user name is shown with the "machine prefix" (= Seven) ... why not in case of A?)
@@ mkpasswd -l foo -u Henri
mkpasswd (273): [1722] The RPC server is unavailable
# test only: apparently, Seven is recognized as a "machine name"
=====
--
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
- Raw text -