Thread View: news.software.nntp
7 messages
7 total messages
Started by Avon Kerr
Sun, 30 Aug 2015 02:45
creating usernames and passwords
Author: Avon Kerr
Date: Sun, 30 Aug 2015 02:45
Date: Sun, 30 Aug 2015 02:45
16 lines
1513 bytes
1513 bytes
I have tried running from my command line the following htpasswd -nbd user pass this generates a different password each time I evoke it, but I thought this would generate the same password output each time given I am inputting a password to encode of pass ?? Do I then take this output and copy and paste it into the non world readable file? Then point ckpasswd at it in readers.conf? Confused. How can I be sure I am creating encrypted passwords reliably? Paul
Re: creating usernames and passwords
Author: Julien ÉLIE
Date: Sun, 30 Aug 2015 12:48
Date: Sun, 30 Aug 2015 12:48
32 lines
2006 bytes
2006 bytes
Hi Paul,
> I have tried running from my command line the following
>
> htpasswd -nbd user pass
>
> this generates a different password each time I evoke it, but I thought
> this would generate the same password output each time given I am
> inputting a password to encode of pass ??
That's normal. You'll notice the first 2 chars of the encoded password
are different.
Remember that in another thread, you gave "LI" as a parameter:
perl -e 'print "user:".crypt("pass", "LI")."\n";'
> Do I then take this output and copy and paste it into the non world
> readable file? Then point ckpasswd at it in readers.conf?
Yes.
> Confused. How can I be sure I am creating encrypted passwords reliably?
That's reliable.
--
Julien ÉLIE
« L'éternité, c'est long, surtout vers la fin. » (Woody Allen)
Re: creating usernames and passwords
Author: Avon Kerr
Date: Mon, 31 Aug 2015 07:57
Date: Mon, 31 Aug 2015 07:57
37 lines
2174 bytes
2174 bytes
Hi Julien
On Sun, 30 Aug 2015 14:48:12 +0200, Julien ÉLIE wrote:
>> I have tried running from my command line the following
>>
>> htpasswd -nbd user pass
>>
>> this generates a different password each time I evoke it, but I thought
>> this would generate the same password output each time given I am
>> inputting a password to encode of pass ??
>
> That's normal. You'll notice the first 2 chars of the encoded password
> are different.
> Remember that in another thread, you gave "LI" as a parameter:
> perl -e 'print "user:".crypt("pass", "LI")."\n";'
Forgive the silly question... so do I need to run both bits of code
before saving the user:password in to a file ... or do they both do the
same job but just using different approaches?
I figured I only needed to invoke htpasswd -nbd user pass - correct?
>> Do I then take this output and copy and paste it into the non world
>> readable file? Then point ckpasswd at it in readers.conf?
>
> Yes.
Thanks :)
Best, Paul
--
Agency News | news.bbs.geek.nz
Re: creating usernames and passwords
Author: Julien ÉLIE
Date: Mon, 31 Aug 2015 19:45
Date: Mon, 31 Aug 2015 19:45
25 lines
1948 bytes
1948 bytes
Hi Paul,
>> Remember that in another thread, you gave "LI" as a parameter:
>> perl -e 'print "user:".crypt("pass", "LI")."\n";'
>
> Forgive the silly question... so do I need to run both bits of code
> before saving the user:password in to a file ... or do they both do the
> same job but just using different approaches?
They do the same job.
htpasswd uses two random chars whereas the above perl command with
crypt() explicitly gives the first two chars.
The encrypted password does not change for two given first chars.
> I figured I only needed to invoke htpasswd -nbd user pass - correct?
Yes.
--
Julien ÉLIE
« Tout est dans tout, et réciproquement. » (Pierre Dac)
Re: creating usernames and passwords
Author: Avon Kerr
Date: Tue, 01 Sep 2015 08:10
Date: Tue, 01 Sep 2015 08:10
27 lines
1822 bytes
1822 bytes
Hi Julien. On Mon, 31 Aug 2015 21:45:04 +0200, Julien ÉLIE wrote: > They do the same job. > htpasswd uses two random chars whereas the above perl command with > crypt() explicitly gives the first two chars. > The encrypted password does not change for two given first chars. Ah, OK thanks. >> I figured I only needed to invoke htpasswd -nbd user pass - correct? > > Yes. Good, no point in running commands just for the sake of it. Can I suggest you make this an x OR y example, as I read it (incorrectly) as being something you ran as step one then step two... silly I know but that was how I first interpreted it. Best, Paul -- Agency News | news.bbs.geek.nz
Re: creating usernames and passwords
Author: Julien ÉLIE
Date: Tue, 01 Sep 2015 18:56
Date: Tue, 01 Sep 2015 18:56
24 lines
2048 bytes
2048 bytes
Hi Paul, >>> I figured I only needed to invoke htpasswd -nbd user pass - correct? >> >> Yes. > > Good, no point in running commands just for the sake of it. > Can I suggest you make this an x OR y example, as I read it (incorrectly) > as being something you ran as step one then step two... silly I know but > that was how I first interpreted it. Sure. I gave the two commands because htpasswd could be missing in some systems. I will reword the sentence saying that another command involving perl can be used instead of the first one, and notably in case htpasswd is not available. -- Julien ÉLIE « – Nous voyageons plus vite que la lumière ! – Alors comment y voir clair dans tout ça ? » (Astérix)
Re: creating usernames and passwords
Author: Avon Kerr
Date: Mon, 07 Sep 2015 08:30
Date: Mon, 07 Sep 2015 08:30
20 lines
1778 bytes
1778 bytes
Hi Julien On Tue, 01 Sep 2015 20:56:13 +0200, Julien ÉLIE wrote: > Sure. > I gave the two commands because htpasswd could be missing in some > systems. I will reword the sentence saying that another command > involving perl can be used instead of the first one, and notably in case > htpasswd is not available. Thanks using htpasswd seems to be working for me to help create a user:password entry. I have now have managed to enable authenticated logins :-) Best, Paul -- Agency News | news.bbs.geek.nz
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads