* 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
* Re: Why does mkpasswd -c use a different offset? Corinna?
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
1 sibling, 1 reply; 5+ messages in thread
From: cyg Simple @ 2014-10-27 23:51 UTC (permalink / raw)
To: cygwin
On Mon, Oct 27, 2014 at 7:11 PM, Houder wrote:
> 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".
>
Are you logged into a domain?
-c would give you the domain user in that case
-l would give you the local user
cyg Simple
--
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
* Re: Why does mkpasswd -c use a different offset? Corinna?
2014-10-27 23:51 ` cyg Simple
@ 2014-10-28 8:38 ` Houder
0 siblings, 0 replies; 5+ messages in thread
From: Houder @ 2014-10-28 8:38 UTC (permalink / raw)
To: cygwin
> On Mon, Oct 27, 2014 at 7:11 PM, Houder wrote:
>> 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".
>>
Hi Mr.? "Simple",
>
> Are you logged into a domain?
>
No, I am not. That is, Seven (my machine at home) does it all by itself ("stand-alone").
> -c would give you the domain user in that case
> -l would give you the local user
... meaning? mkpasswd -c (and mkgroup -c) should not yield any output in my case?
I reread the description of both commands in the User Guide ... it did not help to remove my confusion.
>
> cyg Simple
=====
--
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
* Re: Why does mkpasswd -c use a different offset? Corinna?
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 9:28 ` Corinna Vinschen
2014-10-28 9:46 ` Houder
1 sibling, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2014-10-28 9:28 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
On Oct 28 00:11, Houder wrote:
> 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 ...
It's a bug. Funny that this has never been reported before.
It shouldn't matter anymore, though, because mkpasswd is changing
significantly with 1.7.33. I would suggest to take a look into the
current test release 1.7.33-0.3. The mkpasswd command will produce
the same uid and gid values as the values generated by the Cygwin
DLL in "db" mode to avoid collisions.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why does mkpasswd -c use a different offset? Corinna?
2014-10-28 9:28 ` Corinna Vinschen
@ 2014-10-28 9:46 ` Houder
0 siblings, 0 replies; 5+ messages in thread
From: Houder @ 2014-10-28 9:46 UTC (permalink / raw)
To: cygwin
> On Oct 28 00:11, Houder wrote:
>> 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".
[snip]
>> Please, enlighten me ...
>
> It's a bug. Funny that this has never been reported before.
... aha, that makes sense.
> It shouldn't matter anymore, though, because mkpasswd is changing
> significantly with 1.7.33. I would suggest to take a look into the
> current test release 1.7.33-0.3. The mkpasswd command will produce
> the same uid and gid values as the values generated by the Cygwin
> DLL in "db" mode to avoid collisions.
Aha ... I have already replaced the cygwin1.dll (on my Cygwin-32) with
the one from the snapshot ... apparently, that is not sufficient ...
Thank you very much for your clarification!
Henri
=====
--
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).