delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/27/19:11:50

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=Qo1
KkIgGAkNNFIccAPz3Eci9+KEH9UAD1mAeTL4dsjdE6b6V5PjYlrfdLRlLPyg430h
B7pehHPCK1OTW/UWVoofJOIwTmIKbiUrU9H+v+CPZxWcMwk99CUI8A0gaXtcn2FP
yVzw4IqvbmtmGX78DhpveBJLtAecN3DyLunQjzqE=
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=YcjBmtAZL
4O+aN0FCTJl1ZiA83Q=; b=IOcggDV0fHRL95VKiTUhm0EyESYILI7Mr0mnmL+jt
4YvbU1hcrPKMCBGVmHlZ/RPx8f2ka1wvAWFRfmoj8Z/c2Q4mutqK85BDemkAAcMy
NpK7BtSyKt5oQAwNYXqpY4dIPZZAC1U3ClgjfLB6bsS5lXmwKMbL0TCUXY79DuWW
Z8=
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=0.3 required=5.0 tests=AWL,BAYES_50,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: smtp-vbr1.xs4all.nl
Message-ID: <f069d5205a8a3fe87d00afa81537a959.squirrel@webmail.xs4all.nl>
Date: Tue, 28 Oct 2014 00:11:29 +0100
Subject: Why does mkpasswd -c use a different offset? Corinna?
From: "Houder" <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.18
MIME-Version: 1.0

Hi Corinna,

I am confused ... the output from mkpasswd -c is NOT the same as the output from mkpasswd -l -u <current user> on
both my "Cygwin-32" and my "Cygwin-64".

As an example, the output on my "Cygwin-64":

64-@@ uname -a
CYGWIN_NT-6.1 Seven 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64 Cygwin
64-@@ id
uid=1000(Henri) gid=513(None) groups=513(None),545(Users),1007(HelpLibraryUpdaters)

64-@@ grep Henri /etc/passwd
Henri:unused:1000:513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
64-@@ mkpasswd -l -u Henri
Henri:unused:1000:513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash

64-@@ mkpasswd -c
Henri:unused:11000:10513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
64-@@ mkpasswd -C
Seven\Henri:unused:11000:10513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash

Note the difference between the output from 'mkpasswd -l -u Henri' and 'mkpasswd -c' (i.c. uid and gid). It is
not what I expect (i.e. I do not understand).

Please, enlighten me ...

Thanks, Henri

64-@@ mkpasswd -l Seven -u Henri
Henri:unused:11000:10513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
64-@@ mkpasswd -l Seven,0 -u Henri
Henri:unused:1000:513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
64-@@ cat /etc/nsswitch.conf
passwd: files
group: files
db_enum: files

=====


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


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