Generate random password

Generate random password

Post by Maryanne Cheun » Tue, 18 Sep 2001 14:43:19



Hi there,

I do remember there is a command that you can use to generate a random
password, but I can't recall what the command is, can someone help me out?

Thanks,

Jindan

 
 
 

Generate random password

Post by Swif » Tue, 18 Sep 2001 21:59:04


On Mon, 17 Sep 2001 00:43:19 -0500, Maryanne Cheung


>  I do remember there is a command that you can use to generate a random
>  password, but I can't recall what the command is, can someone help me out?

I always use
        ~$ head -c 6 /dev/random | mmencode

F.i.
        ~$ head -c 6 /dev/random | mmencode
        FqL74gqd

--
  SwifT
  |- LUG : http://www.lugwv.be
  |- PGP Key-# : 0xCDBA2FDB
  `- "Happy Linux-user :)"

 
 
 

Generate random password

Post by Maryanne Cheun » Tue, 18 Sep 2001 22:40:20


That works! But is there a neater way?


> On Mon, 17 Sep 2001 00:43:19 -0500, Maryanne Cheung

> >  I do remember there is a command that you can use to generate a random
> >  password, but I can't recall what the command is, can someone help me
out?

> I always use
> ~$ head -c 6 /dev/random | mmencode

> F.i.
> ~$ head -c 6 /dev/random | mmencode
> FqL74gqd

> --
>   SwifT
>   |- LUG : http://www.lugwv.be
>   |- PGP Key-# : 0xCDBA2FDB
>   `- "Happy Linux-user :)"

 
 
 

Generate random password

Post by cbbro.. » Tue, 18 Sep 2001 23:06:33





> > On Mon, 17 Sep 2001 00:43:19 -0500, Maryanne Cheung

> > >  I do remember there is a command that you can use to generate a random
> > >  password, but I can't recall what the command is, can someone help me
> out?

> > I always use
> > ~$ head -c 6 /dev/random | mmencode

> > F.i.
> > ~$ head -c 6 /dev/random | mmencode
> > FqL74gqd

> That works! But is there a neater way?

What is your metric for "neater"?

The answer given seems "neat" enough to me; it is brief, and it is
quite clear what it is doing.

About the only "neater" thing I'd consider of value is to put that one
line into a file, and call it /home/cbbrowne/bin/mkpwd

What would you think to be "neater?"
--

http://www.cbbrowne.com/info/lsf.html
"If there are aliens, they use Lisp."
--Edward Lasker, mutatis mutandi

 
 
 

Generate random password

Post by Robert_ » Tue, 18 Sep 2001 19:16:25



> That works! But is there a neater way?

vi  ~/.bashrc              #(or /etc/bashrc for everyone)
alias randpw=' head -c 6 /dev/random | mmencode'   #SwifT's script  

save ,exit vi and do "source ~/.bashrc"
Do "randpw" to get your password  (or do whatever alias you have
choosen)

all the best,
Robert_L
--
Linux Mandrake release 8.0 (Traktopel) for i586
Kernel 2.4.8  XFree86 4.1.0  
KDE: 2.2 KNode: 0.6.1

 
 
 

Generate random password

Post by Skylar Thomps » Tue, 18 Sep 2001 18:31:04



>Hi there,

>I do remember there is a command that you can use to generate a random
>password, but I can't recall what the command is, can someone help me out?

Try mkpasswd(1).

--

P(4.2.2) + "Skylar DXLIX" DMPo L:36 DL:2500' A++ R+++ Sp w:Stormbringer
A(JLE)*/P*/Z/J64/Ad L/O H+ D+ c f-/f PV+ s TT- d++/d+ P++ M/M+
C- S++ I+/I++ So B+ ac GHB++ SQ++ RQ+ V+ F:JLE F: Possessors strong again

 
 
 

1. Generate random password.

Is it possible to find a program (called by root) which:

1. Generate a random password consisting of configurable number
   of alphabetic, numeric and special characters.

2. Give this random password to the passwd-program automatically
   (without the questions "New password:" and "Re-enter new
   password:").

**********************************************************

National Land Survey of Sweden       Phone:  +46 26 153492
80182 Gavle, SWEDEN                  Fax:    +46 26 653569

2. How do I setup X to use built-in laptop stick?

3. Generating random passwords

4. How to access I/O port 0x42,0x61 in the kernel device driver if check_region() fails

5. How can I generate Random Passwords...

6. pam

7. how to generate a random password for user

8. Hayes ESP board

9. Trying to generate random random numbers!

10. Generating random strings: Help requested.

11. Generating Random Numbers

12. Random number generating script

13. generating random numbers (FAQ??)