Re: random generated password

2011-09-02 Thread Michael
On 30/08/2011 19:30, Mike Tancsa wrote: Preferably in a non-interactive and scriptable way. Is it possible with the base system tools? 0(ich10)# pw usermod testuser1 -w random Password for 'testuser1' is: km.y0LScI3p1 0(ich10)# pw usermod testuser1 -w random Password for 'testuser1' is: P5Rrhm

Re: random generated password

2011-08-30 Thread Pierre-Luc Drouin
If the purpose is to make login unusable, starring the password is the only 100% safe way... On Tue, Aug 30, 2011 at 2:42 PM, Michael Sierchio wrote: > That occurred to me, but it's a smaller alphabet.  Probably doesn't > matter if the purpose is to make login unusable. > > On Tue, Aug 30, 2011 a

Re: random generated password

2011-08-30 Thread Michael Sierchio
That occurred to me, but it's a smaller alphabet. Probably doesn't matter if the purpose is to make login unusable. On Tue, Aug 30, 2011 at 11:40 AM, Randal L. Schwartz wrote: >> "Michael" == Michael Sierchio writes: > > Michael> dd if=/dev/random count=1 | tr -c "[:alnum:]" > Michael> '0-9

Re: random generated password

2011-08-30 Thread Roland Smith
On Tue, Aug 30, 2011 at 07:16:00PM +0100, Michael wrote: > Hello, > > When adding a new user it is possible to assign a random generated > password. But is it possible to assign a random password for already > existing users? > > Preferably in a non-interactive and

Re: random generated password

2011-08-30 Thread Randal L. Schwartz
> "Michael" == Michael Sierchio writes: Michael> dd if=/dev/random count=1 | tr -c "[:alnum:]" Michael> '0-9A-Za-z0-9A-Za-z0-9A-Za-a-z0-9A-Za-z' Michael> will give you the right kind of characters to use, for example. I prefer "openssl rand -base64 6" to get an 8-char password from a fairly

Re: random generated password

2011-08-30 Thread Michael Sierchio
hpass allows root to set the encrypted password directly >> >> chpass -p '$1$123456789$your-random-chars-here' >> >> >> On Tue, Aug 30, 2011 at 11:16 AM, Michael wrote: >>> Hello, >>> >>> When adding a new user it is possible to a

Re: random generated password

2011-08-30 Thread Michael Sierchio
gt; > chpass allows root to set the encrypted password directly > > chpass -p '$1$123456789$your-random-chars-here' > > > On Tue, Aug 30, 2011 at 11:16 AM, Michael wrote: >> Hello, >> >> When adding a new user it is possible to assign a random gene

Re: random generated password

2011-08-30 Thread Michael Sierchio
Presumably you're doing this to prevent direct login? chpass allows root to set the encrypted password directly chpass -p '$1$123456789$your-random-chars-here' On Tue, Aug 30, 2011 at 11:16 AM, Michael wrote: > Hello, > > When adding a new user it is possible to a

Re: random generated password

2011-08-30 Thread Mike Tancsa
On 8/30/2011 2:16 PM, Michael wrote: > Hello, > > When adding a new user it is possible to assign a random generated > password. But is it possible to assign a random password for already > existing users? 0(ich10)# pw useradd testuser1 -w random Password for 'testuser1&#

random generated password

2011-08-30 Thread Michael
Hello, When adding a new user it is possible to assign a random generated password. But is it possible to assign a random password for already existing users? Preferably in a non-interactive and scriptable way. Is it possible with the base system tools? Michael