public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Why does mkpasswd -c use a different offset? Corinna?
@ 2014-10-27 23:11 Houder
  2014-10-27 23:51 ` cyg Simple
  2014-10-28  9:28 ` Corinna Vinschen
  0 siblings, 2 replies; 5+ messages in thread
From: Houder @ 2014-10-27 23:11 UTC (permalink / raw)
  To: cygwin

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

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

end of thread, other threads:[~2014-10-28  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-27 23:11 Why does mkpasswd -c use a different offset? Corinna? Houder
2014-10-27 23:51 ` cyg Simple
2014-10-28  8:38   ` Houder
2014-10-28  9:28 ` Corinna Vinschen
2014-10-28  9:46   ` Houder

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