How to create encrypted password via command line

Bill Tangren bjt at usno.navy.mil
Wed Sep 12 14:33:27 UTC 2007


Anne Moore wrote:
> This worked perfectly! Thank you.
> 
> Now I just have to figure out how to automate it in a script to provide a
> prompt (some of these kids are new users! So I'm trying to make it as easy
> as possible for them...)
> 
> Thanks! 
> 

remove the b from the options, and it will prompt.


> -----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com]
> On Behalf Of Bill Tangren
> Sent: Wednesday, September 12, 2007 9:54 AM
> To: General Red Hat Linux discussion list
> Subject: Re: How to create encrypted password via command line
> 
> Anne Moore wrote:
>> Hi All
>>  
>> Does anyone know of a quick/painless way to create an encrypted 
>> {crypt} password via the command like on Red Hat? I need my users to 
>> do this and I don't want them to have to write much syntax, etc., as 
>> that will be too much for them. I was hoping there was some built-in 
>> (or other) method that allows creating an encrypted password, 
>> depending on what the user types in for the password.
>>  
>> Thank you!
>>  
>> Anne
> 
> Do you mean something like what htpasswd does?
> 
> 
> $ htpasswd -cb jones.passwd jones Pwd4Steve $ cat jones.passwd $ cat
> jones.passwd jones:P9D.NILQAK/KM
> 
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 




More information about the redhat-list mailing list