Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #189988 > unrolled thread
| Started by | root kea <rootkea@gmail.com> |
|---|---|
| First post | 2017-12-18 20:40 +0100 |
| Last post | 2017-12-20 12:40 +0100 |
| Articles | 20 on this page of 25 — 11 participants |
Back to article view | Back to linux.debian.user
Re: LUKS password gets printed as stars root kea <rootkea@gmail.com> - 2017-12-18 20:40 +0100
Re: LUKS password gets printed as stars tomas@tuxteam.de - 2017-12-18 21:30 +0100
Re: LUKS password gets printed as stars deloptes <deloptes@gmail.com> - 2017-12-18 22:30 +0100
Re: LUKS password gets printed as stars root kea <rootkea@gmail.com> - 2017-12-19 19:00 +0100
Re: LUKS password gets printed as stars tomas@tuxteam.de - 2017-12-19 19:30 +0100
Re: LUKS password gets printed as stars root kea <rootkea@gmail.com> - 2017-12-19 20:10 +0100
Re: LUKS password gets printed as stars tomas@tuxteam.de - 2017-12-19 21:10 +0100
Re: LUKS password gets printed as stars Jonathan Dowland <jmtd@debian.org> - 2017-12-19 22:50 +0100
Re: LUKS password gets printed as stars root kea <rootkea@gmail.com> - 2017-12-20 12:10 +0100
Re: LUKS password gets printed as stars Curt <curty@free.fr> - 2017-12-20 14:10 +0100
Re: LUKS password gets printed as stars Richard Hector <richard@walnut.gen.nz> - 2017-12-20 23:40 +0100
Re: LUKS password gets printed as stars Curt <curty@free.fr> - 2017-12-21 10:20 +0100
Re: LUKS password gets printed as stars Richard Hector <richard@walnut.gen.nz> - 2017-12-22 22:30 +0100
Re: LUKS password gets printed as stars Brian <ad44@cityscape.co.uk> - 2017-12-23 00:00 +0100
Re: LUKS password gets printed as stars Anders Andersson <pipatron@gmail.com> - 2017-12-23 14:00 +0100
Re: LUKS password gets printed as stars Hans <hans.ullrich@loop.de> - 2017-12-23 14:40 +0100
Re: LUKS password gets printed as stars Curt <curty@free.fr> - 2017-12-23 16:20 +0100
strawman [was: LUKS password gets printed as stars] <tomas@tuxteam.de> - 2017-12-23 19:10 +0100
Re: strawman [was: LUKS password gets printed as stars] Brian <ad44@cityscape.co.uk> - 2017-12-23 20:50 +0100
Re: LUKS password gets printed as stars <tomas@tuxteam.de> - 2017-12-21 11:50 +0100
Re: LUKS password gets printed as stars Curt <curty@free.fr> - 2017-12-21 12:10 +0100
Re: LUKS password gets printed as stars Don Armstrong <don@debian.org> - 2017-12-19 23:10 +0100
Re: LUKS password gets printed as stars <tomas@tuxteam.de> - 2017-12-20 08:50 +0100
Re: LUKS password gets printed as stars Curt <curty@free.fr> - 2017-12-20 12:00 +0100
Re: LUKS password gets printed as stars <tomas@tuxteam.de> - 2017-12-20 12:40 +0100
Page 1 of 2 [1] 2 Next page →
| From | root kea <rootkea@gmail.com> |
|---|---|
| Date | 2017-12-18 20:40 +0100 |
| Subject | Re: LUKS password gets printed as stars |
| Message-ID | <uY9qx-4wW-5@gated-at.bofh.it> |
I don't know why but this email didn't get delivered to my mailbox even after I'm being in "To" field. I couldn't even find this email in spam. Thankfully, I decided to check debian-users archives and found this mail there! As I have copy pasted mail by hand please excuse the poor formatting. > On 12/18/17, tomas@tuxteam.de <tomas@tuxteam.de> wrote: >> On Mon, Dec 18, 2017 at 06:41:00PM +0530, root kea wrote: >> is a screenshot https://imgur.com/bC4AF6H > My crystal ball says you're using systemd. It seems that it has a > special "unit" to mount encrypted file systems [1], which may call > into one of several password agents [2]. If this hunch is correct, > you may start with [2], find out which agent you are talking to > and perhaps reconfigure it in the way you like. OMG! You are absolutely right! I went through the links you provided and ended up on systemd-ask-password [0]. As its manpage says, I tried pressing TAB and voila! echo is turned off! Here is the screenshot with echo off [1] BTW, pressing backspace as a very first char worked too (as mentioned in the same manpage). Now I just need to find out from where this `systemd-ask-password` is executed and then edit it's command by omitting the `--echo` flag thereby turning off the echo by default. (A sane default!) Though I'm searching for the `systemd-ask-password` command location; any further help would be really appreciated! Thanks! [0] https://www.freedesktop.org/software/systemd/man/systemd-ask-password.html [1] https://imgur.com/u4nw6Lb -- Avinash Sonawane (rootKea) PICT, Pune https://rootkea.wordpress.com
[toc] | [next] | [standalone]
| From | tomas@tuxteam.de |
|---|---|
| Date | 2017-12-18 21:30 +0100 |
| Message-ID | <uYacW-57a-17@gated-at.bofh.it> |
| In reply to | #189988 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Dec 19, 2017 at 12:42:57AM +0530, root kea wrote: > I don't know why but this email didn't get delivered to my mailbox > even after I'm being in "To" field. I couldn't even find this email in > spam. Thankfully, I decided to check debian-users archives and found > this mail there! Strange. OK, my mail server hasn't yet SPF or DKIM, which might raise the mail's spam score, but just silently dropping the mail seems pretty uncivilised (but hey, it's Google, so...) Perhaps now that you mailed me, gmail is a bit friendlier. > As I have copy pasted mail by hand please excuse the poor formatting. No problem, formatting is fine. > > On 12/18/17, tomas@tuxteam.de <tomas@tuxteam.de> wrote: [...] > > My crystal ball says you're using systemd [...] > OMG! You are absolutely right! I went through the links you provided > and ended up on systemd-ask-password [0]. As its manpage says, I tried > pressing TAB and voila! echo is turned off! Here is the screenshot > with echo off [1] Glad we found it :-) > BTW, pressing backspace as a very first char worked too (as mentioned > in the same manpage). > > Now I just need to find out from where this `systemd-ask-password` is > executed and then edit it's command by omitting the `--echo` flag > thereby turning off the echo by default. (A sane default!) > > Though I'm searching for the `systemd-ask-password` command location; > any further help would be really appreciated! Install apt-file: very recommended. It lets you search for Debian packages containing a file (by file name, even when the package isn't installed): | tomas@trotzki:~$ apt-file search systemd-ask-password | manpages-de: /usr/share/man/de/man8/systemd-ask-password-console.service.8.gz | manpages-zh: /usr/share/man/zh_CN/man1/systemd-ask-password.1.gz | manpages-zh: /usr/share/man/zh_TW/man1/systemd-ask-password.1.gz | plymouth: /lib/systemd/system/systemd-ask-password-plymouth.path | plymouth: /lib/systemd/system/systemd-ask-password-plymouth.service | systemd: /bin/systemd-ask-password | systemd: /lib/systemd/system/multi-user.target.wants/systemd-ask-password-wall.path | systemd: /lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path | systemd: /lib/systemd/system/systemd-ask-password-console.path | systemd: /lib/systemd/system/systemd-ask-password-console.service | systemd: /lib/systemd/system/systemd-ask-password-wall.path | systemd: /lib/systemd/system/systemd-ask-password-wall.service | systemd: /usr/share/man/man1/systemd-ask-password.1.gz | systemd: /usr/share/man/man8/systemd-ask-password-console.path.8.gz | systemd: /usr/share/man/man8/systemd-ask-password-console.service.8.gz | systemd: /usr/share/man/man8/systemd-ask-password-wall.path.8.gz | systemd: /usr/share/man/man8/systemd-ask-password-wall.service.8.gz so now we know systemd-ask-password lives in /bin and comes with package systemd. But I guess you are looking for its config file, perhaps something in the whereabouts of /lib/systemd/system/systemd-ask-password-console.service. Note that the usual way of customizing that is not by changing the service file in /lib/systemd/... but to put a new service file somewhere in /etc (/etc/systemd?) overriding it. My wisdom there is pretty sparse, perhaps some systemd buff can chime in here. Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlo4JOQACgkQBcgs9XrR2ka0kwCePwPUB919slsKXrbKY6ERLmkq 4DEAn1HF0T8Ut7M450brLeF11kDm5qs3 =weY6 -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2017-12-18 22:30 +0100 |
| Message-ID | <uYb8Z-5Jx-5@gated-at.bofh.it> |
| In reply to | #189989 |
tomas@tuxteam.de wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, Dec 19, 2017 at 12:42:57AM +0530, root kea wrote: >> I don't know why but this email didn't get delivered to my mailbox >> even after I'm being in "To" field. I couldn't even find this email in >> spam. Thankfully, I decided to check debian-users archives and found >> this mail there! > > Strange. OK, my mail server hasn't yet SPF or DKIM, which might raise > the mail's spam score, but just silently dropping the mail seems > pretty uncivilised (but hey, it's Google, so...) > > Perhaps now that you mailed me, gmail is a bit friendlier. > Many times on other lists hosted by gmane mails are delayed/rejected by recipients mail server (google) in which case appropriate message is returned to the mailer (gmane) who in turn for obvious reasons suppresses it. I often get later a mail that mails addressed to me were held back. So me too is reading primary gmane in a client and the mails send to my mailbox are just for the record :) regards
[toc] | [prev] | [next] | [standalone]
| From | root kea <rootkea@gmail.com> |
|---|---|
| Date | 2017-12-19 19:00 +0100 |
| Message-ID | <uYulj-1vd-13@gated-at.bofh.it> |
| In reply to | #189989 |
On Tue, Dec 19, 2017 at 1:58 AM, <tomas@tuxteam.de> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, Dec 19, 2017 at 12:42:57AM +0530, root kea wrote: >> Now I just need to find out from where this `systemd-ask-password` is >> executed and then edit it's command by omitting the `--echo` flag >> thereby turning off the echo by default. (A sane default!) >> >> Though I'm searching for the `systemd-ask-password` command location; >> any further help would be really appreciated! > in the whereabouts of /lib/systemd/system/systemd-ask-password-console.service. Thanks for the apt-file tip. I was hoping to find systemd-ask-password command execution in this file so that I could omit `--echo` switch (I'm thinking it's there as user input is echoed by default). But instead systemd-tty-ask-password-agent [0] gets executed from that file which doesn't accept `--echo` as a flag. Here is the full contents of systemd-ask-password-console.service file [1] > Note that the usual way of customizing that is not by changing the > service file in /lib/systemd/... but to put a new service file somewhere > in /etc (/etc/systemd?) overriding it. I can read up more on that and can create a new file but now not so sure what to put there. [0] https://www.freedesktop.org/software/systemd/man/systemd-tty-ask-password-agent.html [1] https://pastebin.com/bSUPTqGt -- Avinash Sonawane (rootKea) PICT, Pune https://rootkea.wordpress.com
[toc] | [prev] | [next] | [standalone]
| From | tomas@tuxteam.de |
|---|---|
| Date | 2017-12-19 19:30 +0100 |
| Message-ID | <uYuOm-1V8-5@gated-at.bofh.it> |
| In reply to | #190026 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Dec 19, 2017 at 11:04:38PM +0530, root kea wrote: [...] > Thanks for the apt-file tip. I was hoping to find systemd-ask-password > command execution in this file so that I could omit `--echo` switch > (I'm thinking it's there as user input is echoed by default). > > But instead systemd-tty-ask-password-agent [0] gets executed from that > file which doesn't accept `--echo` as a flag. Here is the full > contents of systemd-ask-password-console.service file [1] Seems you are out of luck. Using the wonderful Debian code search: https://sources.debian.org/src/systemd/236-1/src/shared/ask-password-api.c/?hl=386#L380 it seems the password entry routine either prints each of the password's characters in clear (&c) when the ASK_PASSWORD_ECHO is set, or it prints a star "*" otherwise. So you might try to write your own agent, or file a wishlist bug. But perhaps I'm overlooking something. After all, I'm the absolutely wrong person to answer questions about systemd... Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlo5WjcACgkQBcgs9XrR2kb9lwCeOtdahCQn50OP/XkVbDiEXMp0 8e8AnjXFg3WA1oz3ZVyGt6WW2baMwyUq =zD5Y -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | root kea <rootkea@gmail.com> |
|---|---|
| Date | 2017-12-19 20:10 +0100 |
| Message-ID | <uYvr3-2pp-9@gated-at.bofh.it> |
| In reply to | #190027 |
On Tue, Dec 19, 2017 at 11:58 PM, <tomas@tuxteam.de> wrote: > So you might try to write your own agent, or file a wishlist > bug. I want *default* password agent to be consistent with traditional *Nix password handling. And that is echoing NOTHING at all. I am amazed that at times I had to defend not wanting stars(*) getting echoed on terminal on *Linux* box. That should have been other way around. That is the onus to defend should be on the one who wants stars(*) being echoed on Terminal. Anyways, thank you for helping me out! I learned a thing or two thanks to you! And I just filed a bug report [0]. if anybody interested they can follow the discussion there. [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884788 Regards, Avinash Sonawane (rootKea) PICT, Pune https://rootkea.wordpress.com
[toc] | [prev] | [next] | [standalone]
| From | tomas@tuxteam.de |
|---|---|
| Date | 2017-12-19 21:10 +0100 |
| Message-ID | <uYwn8-33Y-1@gated-at.bofh.it> |
| In reply to | #190032 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Dec 20, 2017 at 12:15:36AM +0530, root kea wrote: > On Tue, Dec 19, 2017 at 11:58 PM, <tomas@tuxteam.de> wrote: > > > So you might try to write your own agent, or file a wishlist > > bug. > > I want *default* password agent to be consistent with traditional *Nix > password handling. And that is echoing NOTHING at all. > > I am amazed that at times I had to defend not wanting stars(*) getting > echoed on terminal on *Linux* box. That should have been other way > around. That is the onus to defend should be on the one who wants > stars(*) being echoed on Terminal. That's the main reason I avoid systemd: there are quite a few good ideas in there, and the folks making it are pretty good, but generally pretty opinionated too. But who knows, perhaps you can persuade them. Or... we might have overseen something. > Anyways, thank you for helping me out! I learned a thing or two thanks to you! > > And I just filed a bug report [0]. if anybody interested they can > follow the discussion there. > > [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884788 Thanks for that, and eager to learn how this unfolds. Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlo5cBkACgkQBcgs9XrR2kbhfgCfRMoX8PTrOMxwHYqqOfmodn1E BCEAn1LltJ15k6rVNhhIneMz5vM4lj17 =i78a -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Jonathan Dowland <jmtd@debian.org> |
|---|---|
| Date | 2017-12-19 22:50 +0100 |
| Message-ID | <uYxVT-3Z1-1@gated-at.bofh.it> |
| In reply to | #190032 |
On Wed, Dec 20, 2017 at 12:15:36AM +0530, root kea wrote: >I am amazed that at times I had to defend not wanting stars(*) getting >echoed on terminal on *Linux* box. That should have been other way >around. That is the onus to defend should be on the one who wants >stars(*) being echoed on Terminal. I suspect the whole thing has been discussed a long time and in great depth somewhere else. >And I just filed a bug report [0]. if anybody interested they can >follow the discussion there. > >[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884788 In this case I think you would have much more luck in at least getting a discussion of the various merits of each approach, if not a change of behaviour, by posting to the systemd-devel mailing list[1] [1] https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland ⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net ⠈⠳⣄⠀⠀⠀⠀ Please do not CC me, I am subscribed to the list.
[toc] | [prev] | [next] | [standalone]
| From | root kea <rootkea@gmail.com> |
|---|---|
| Date | 2017-12-20 12:10 +0100 |
| Message-ID | <uYKq5-49j-11@gated-at.bofh.it> |
| In reply to | #190044 |
On Wed, Dec 20, 2017 at 3:18 AM, Jonathan Dowland <jmtd@debian.org> wrote: > On Wed, Dec 20, 2017 at 12:15:36AM +0530, root kea wrote: >> And I just filed a bug report [0]. if anybody interested they can >> follow the discussion there. >> >> [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884788 > > > In this case I think you would have much more luck in at least getting > a discussion of the various merits of each approach, if not a change of > behaviour, by posting to the systemd-devel mailing list[1] Thanks for the suggestion! I just posted about "`systemd-ask-password` echoing stars(*) by default" on systemd-devel ML. [0] I genuinely hope that they change this default behavior. [0] https://lists.freedesktop.org/archives/systemd-devel/2017-December/040023.html -- Avinash Sonawane (rootKea) PICT, Pune https://rootkea.wordpress.com
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2017-12-20 14:10 +0100 |
| Message-ID | <uYMid-5j4-5@gated-at.bofh.it> |
| In reply to | #190057 |
On 2017-12-20, root kea <rootkea@gmail.com> wrote: > On Wed, Dec 20, 2017 at 3:18 AM, Jonathan Dowland <jmtd@debian.org> wrote: >> On Wed, Dec 20, 2017 at 12:15:36AM +0530, root kea wrote: > >>> And I just filed a bug report [0]. if anybody interested they can >>> follow the discussion there. >>> >>> [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884788 >> >> >> In this case I think you would have much more luck in at least getting >> a discussion of the various merits of each approach, if not a change of >> behaviour, by posting to the systemd-devel mailing list[1] > > Thanks for the suggestion! I just posted about "`systemd-ask-password` > echoing stars(*) by default" on systemd-devel ML. [0] > > I genuinely hope that they change this default behavior. I thought we wanted it to be configurable because it is currently not configurable (through ordinary command-line means, short of recompilation). Don Armstrong explained the rationale behind making echoed "stars" the default and opining that a bug report with patch would be welcome. Now we want to change the default. Give them the moon, and they want the stars, too! Also, I'm uncertain whether suppression of the asterisk-echo qualifies as "security by obscurity" (actually, that expression is almost exclusively pejorative in my experience) as you claim in exposing your reasoning in the article linked below. > [0] > https://lists.freedesktop.org/archives/systemd-devel/2017-December/040023.html -- "An autobiography is only to be trusted when it reveals something disgraceful. A man who gives a good account of himself is probably lying, since any life when viewed from the inside is simply a series of defeats." — George Orwell
[toc] | [prev] | [next] | [standalone]
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Date | 2017-12-20 23:40 +0100 |
| Message-ID | <uYVbP-2vK-1@gated-at.bofh.it> |
| In reply to | #190063 |
[Multipart message — attachments visible in raw view] — view raw
On 21/12/17 02:02, Curt wrote: > Also, I'm uncertain whether suppression of the asterisk-echo qualifies > as "security by obscurity" I think most people accept that obscurity is quite reasonable for passwords ... Richard
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2017-12-21 10:20 +0100 |
| Message-ID | <uZ5bb-DE-1@gated-at.bofh.it> |
| In reply to | #190069 |
On 2017-12-20, Richard Hector <richard@walnut.gen.nz> wrote: > > On 21/12/17 02:02, Curt wrote: >> Also, I'm uncertain whether suppression of the asterisk-echo qualifies >> as "security by obscurity" > > I think most people accept that obscurity is quite reasonable for > passwords ... > > Richard > Wonderful, Dick, however, I was referring to the specific expression "security by (or through) obscurity," which denotes something else. https://en.wikipedia.org/wiki/Security_through_obscurity -- "An autobiography is only to be trusted when it reveals something disgraceful. A man who gives a good account of himself is probably lying, since any life when viewed from the inside is simply a series of defeats." — George Orwell
[toc] | [prev] | [next] | [standalone]
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Date | 2017-12-22 22:30 +0100 |
| Message-ID | <uZD3b-6uT-11@gated-at.bofh.it> |
| In reply to | #190080 |
[Multipart message — attachments visible in raw view] — view raw
On 21/12/17 22:16, Curt wrote: > On 2017-12-20, Richard Hector <richard@walnut.gen.nz> wrote: >> >> On 21/12/17 02:02, Curt wrote: >>> Also, I'm uncertain whether suppression of the asterisk-echo qualifies >>> as "security by obscurity" >> >> I think most people accept that obscurity is quite reasonable for >> passwords ... >> >> Richard >> > > Wonderful, Dick, however, I was referring to the specific expression > "security by (or through) obscurity," which denotes something else. > > https://en.wikipedia.org/wiki/Security_through_obscurity I'm aware of that concept. But making it harder to see the length of the password makes it harder to guess the password, no? Which has got to be good? On 21/12/17 23:57, Curt wrote: >>> Also, I'm uncertain whether suppression of the asterisk-echo qualifies >>> as "security by obscurity [...] >> I'm certain. It doesn't. > Here too. And you seem to agree. Richard ((almost) always Richard, and never Dick)
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2017-12-23 00:00 +0100 |
| Message-ID | <uZEsi-7gS-15@gated-at.bofh.it> |
| In reply to | #190166 |
On Sat 23 Dec 2017 at 10:25:10 +1300, Richard Hector wrote: > On 21/12/17 22:16, Curt wrote: > > On 2017-12-20, Richard Hector <richard@walnut.gen.nz> wrote: > >> > >> On 21/12/17 02:02, Curt wrote: > >>> Also, I'm uncertain whether suppression of the asterisk-echo qualifies > >>> as "security by obscurity" > >> > >> I think most people accept that obscurity is quite reasonable for > >> passwords ... > >> > >> Richard > >> > > > > Wonderful, Dick, however, I was referring to the specific expression > > "security by (or through) obscurity," which denotes something else. > > > > https://en.wikipedia.org/wiki/Security_through_obscurity > > I'm aware of that concept. But making it harder to see the length of the > password makes it harder to guess the password, no? Which has got to be > good? Definitely. Knowing the password is twenty characters reduces the time taken to guess it from ten billion years to an estimated five million years. -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | Anders Andersson <pipatron@gmail.com> |
|---|---|
| Date | 2017-12-23 14:00 +0100 |
| Message-ID | <uZRzb-7YE-5@gated-at.bofh.it> |
| In reply to | #190166 |
On Fri, Dec 22, 2017 at 10:25 PM, Richard Hector <richard@walnut.gen.nz> wrote: > On 21/12/17 22:16, Curt wrote: >> On 2017-12-20, Richard Hector <richard@walnut.gen.nz> wrote: >>> >>> On 21/12/17 02:02, Curt wrote: >>>> Also, I'm uncertain whether suppression of the asterisk-echo qualifies >>>> as "security by obscurity" >>> >>> I think most people accept that obscurity is quite reasonable for >>> passwords ... >>> >>> Richard >>> >> >> Wonderful, Dick, however, I was referring to the specific expression >> "security by (or through) obscurity," which denotes something else. >> >> https://en.wikipedia.org/wiki/Security_through_obscurity > > I'm aware of that concept. But making it harder to see the length of the > password makes it harder to guess the password, no? Which has got to be > good? No. I've been facepalming myself through this thread but I can't really keep my mouth shut anymore. All this is very misguided. Knowing the length of your password means that it takes about 1-2% less time to brute-force it, no matter how many characters you use. This is because every extra character multiplies the difficulty by about 50-100 depending on what type of characters you pick from. Let's say you use a 10 letter password, from a pool of 100 characters for each letter and someone is brute-forcing it. If they *know* that you have 10 letters in your password, they will have to try on average 100^10/2 = 50000000000000000000 times before they find the right password. Now, what happens if they *don't* know? They will have to start testing all possible 1-letter passwords, then 2-letter, 3-letter etc: (100^1 + 100^2 + 100^3...)/2 = 50505050505050505050. Wow, to brute-force without known the number requires 1.01% more calculations.
[toc] | [prev] | [next] | [standalone]
| From | Hans <hans.ullrich@loop.de> |
|---|---|
| Date | 2017-12-23 14:40 +0100 |
| Message-ID | <uZSbU-8u2-1@gated-at.bofh.it> |
| In reply to | #190204 |
Am Samstag, 23. Dezember 2017, 13:57:59 CET schrieb Anders Andersson: Hi Anders, this is an interesting point, you showed. I suppose, 10 digits will be mostly be used by poeple, maybe less. But 1 percent longer for each added digit sounds not much. However, when it comes to more digits, let's say 16 (WPA2 often uses 16 digits with only letters and numbers), then the time to crack will increase rapidely. If I understood you correct, and please correct me if I am wrong, this is 1 percent of the time for trying all combinations with one lesser digit. And I suppose, guessing 15 digits will cause a loooooong time, and 1 percent of this looooong time plus another much more looooooong time will result in a very looooooooooong time. So, the more unnecessary digits, the better. Anders, is there an error in my thoughts? For all people, reading this: However, going back to the original theme: IMO showing stars for the password is worse (although typing could be heard and finger moves can be counted) than not to be shown. I remember in kdm or other login managers, it could be chosen, if there are 1 star/letter, 3 stars/ letter or none. Maybe this option should be added, so any operator can decide (after encodinng the drives), which option he prefers: 1, 3 or none. Have a happy christmas Best Hans > No. I've been facepalming myself through this thread but I can't > really keep my mouth shut anymore. > > All this is very misguided. Knowing the length of your password means > that it takes about 1-2% less time to brute-force it, no matter how > many characters you use. > > This is because every extra character multiplies the difficulty by > about 50-100 depending on what type of characters you pick from. > > Let's say you use a 10 letter password, from a pool of 100 characters > for each letter and someone is brute-forcing it. If they *know* that > you have 10 letters in your password, they will have to try on average > 100^10/2 = 50000000000000000000 times before they find the right > password. > > Now, what happens if they *don't* know? They will have to start > testing all possible 1-letter passwords, then 2-letter, 3-letter etc: > (100^1 + 100^2 + 100^3...)/2 = 50505050505050505050. Wow, to > brute-force without known the number requires 1.01% more calculations.
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2017-12-23 16:20 +0100 |
| Message-ID | <uZTKF-1bS-9@gated-at.bofh.it> |
| In reply to | #190205 |
On 2017-12-23, Hans <hans.ullrich@loop.de> wrote: > > But 1 percent longer for each added digit sounds not much. However, when it > comes to more digits, let's say 16 (WPA2 often uses 16 digits with only > letters and numbers), then the time to crack will increase rapidely. > > If I understood you correct, and please correct me if I am wrong, this is 1 > percent of the time for trying all combinations with one lesser digit. > > And I suppose, guessing 15 digits will cause a loooooong time, and 1 percent > of this looooong time plus another much more looooooong time will result in a > very looooooooooong time. So, the more unnecessary digits, the better. (Assuming all 95 printable ascii characters) link to % time savings: http://www.wolframalpha.com/input/?i=%28sum%20from%20n%3D1%20to%20n%3D16%20of%2095%5En%20%29%20%2F%2095%5E17&dataset=&equal=Submit Quote: An interesting mathematical quirk about this ratio of the number of passwords shorter than n, over the number of passwords of length n, is that it doesn't really depend on n. This is because we're already very close to the asymptote of 1/95 = 0.0105. So an attacker gets the same relative, or percentage, time savings from this trick regardless of the length of your password; it's always between 1% - 2%. Though, of course, the absolute time that it takes grows orders of magnitude with each new character that you add. https://security.stackexchange.com/questions/92233/how-critical-is-it-to-keep-your-password-length-secret -- "An autobiography is only to be trusted when it reveals something disgraceful. A man who gives a good account of himself is probably lying, since any life when viewed from the inside is simply a series of defeats." — George Orwell
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2017-12-23 19:10 +0100 |
| Subject | strawman [was: LUKS password gets printed as stars] |
| Message-ID | <uZWpc-5BP-13@gated-at.bofh.it> |
| In reply to | #190210 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Dec 23, 2017 at 03:14:25PM +0000, Curt wrote: > On 2017-12-23, Hans <hans.ullrich@loop.de> wrote: [...] > > And I suppose, guessing 15 digits will cause a loooooong time [...] > (Assuming all 95 printable ascii characters) link to % time savings: [...] > An interesting mathematical quirk about this ratio of the number of passwords > shorter than n [...] It's interesting how threads among us geeks can be totally derailed by a simple strawman (i.e. no-stars >= stars "because of security"), while the OP's motivation was rather "familiarity" (at least (s)he didn't say anything about security), which in itself is legitimate enough. And watch this thread wander off to the woods on whether no-stars is more secure than stars, and whether significantly so. Fascinating :-) Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlo+lcoACgkQBcgs9XrR2kY/MACeOf6uPfzI3qSlzcqwR5cCSw43 avwAn0PNRC7dabhyHdGHbNEjFbuyJUai =o6R9 -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2017-12-23 20:50 +0100 |
| Subject | Re: strawman [was: LUKS password gets printed as stars] |
| Message-ID | <uZXXX-1Vj-1@gated-at.bofh.it> |
| In reply to | #190213 |
On Sat 23 Dec 2017 at 18:43:38 +0100, tomas@tuxteam.de wrote: > On Sat, Dec 23, 2017 at 03:14:25PM +0000, Curt wrote: > > On 2017-12-23, Hans <hans.ullrich@loop.de> wrote: > > [...] > > > > And I suppose, guessing 15 digits will cause a loooooong time [...] > > > (Assuming all 95 printable ascii characters) link to % time savings: > > [...] > > > An interesting mathematical quirk about this ratio of the number of passwords > > shorter than n [...] > > It's interesting how threads among us geeks can be totally derailed > by a simple strawman (i.e. no-stars >= stars "because of security"), > while the OP's motivation was rather "familiarity" (at least (s)he > didn't say anything about security), which in itself is legitimate > enough. > > And watch this thread wander off to the woods on whether no-stars > is more secure than stars, and whether significantly so. > > Fascinating :-) Motivation is in http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2017-December/016347.html There are mainly 2 reasons behind this proposal: 1. Security by obscurity (hiding the length of pass-phrase) 2. consistency -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2017-12-21 11:50 +0100 |
| Message-ID | <uZ6Ah-1tb-1@gated-at.bofh.it> |
| In reply to | #190063 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Dec 20, 2017 at 01:02:51PM +0000, Curt wrote: [...] > Now we want to change the default. Give them the moon, and they want the > stars, too! Who is "them"? "Not us"? Perhaps you're trying to construe a conflict where, actually there isn't one. Now if I were in charge of systemd-ask-password, I'd be willing to incorporate suppression of the stars as a user-configurable option, but I'd be firmly against changing the default. YMMV. > Also, I'm uncertain whether suppression of the asterisk-echo qualifies > as "security by obscurity [...] I'm certain. It doesn't. Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlo7kXQACgkQBcgs9XrR2kbpbACeNtmK2/fkBJwnA6VS/tm6SvYt vyoAniDYtHG3m1RjVviijDze9FGoL/jT =Edih -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | linux.debian.user
csiph-web