This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why does mkpasswd -c use a different offset? Corinna?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]