Re: Resetting user password in cron

2009-07-17 Thread Lowell Gilbert
Glen Barber writes: > On Thu, Jul 16, 2009 at 8:39 PM, Jos Chrispijn wrote: >> Can someone tell me how I can reset a user's password best in a cron job? >> If I do a password change from the prompt, I now have to re-enter the >> password, which I would not like to do in a cron job. Thanks/ >> > >

Re: Resetting user password in cron

2009-07-16 Thread Tim Judd
On 7/16/09, Jos Chrispijn wrote: > Can someone tell me how I can reset a user's password best in a cron job? > If I do a password change from the prompt, I now have to re-enter the > password, which I would not like to do in a cron job. Thanks/ > > Jos Chrispijn yes newpasswd | passwd username

Re: Resetting user password in cron

2009-07-16 Thread Mel Flynn
On Thursday 16 July 2009 16:39:51 Jos Chrispijn wrote: > Can someone tell me how I can reset a user's password best in a cron job? > If I do a password change from the prompt, I now have to re-enter the > password, which I would not like to do in a cron job. Thanks/ Take a look at pw(8), specifica

Re: Resetting user password in cron

2009-07-16 Thread Josef Grosch
On Fri, Jul 17, 2009 at 02:39:51AM +0200, Jos Chrispijn wrote: > Can someone tell me how I can reset a user's password best in a cron job? > If I do a password change from the prompt, I now have to re-enter the > password, which I would not like to do in a cron job. Thanks/ > > Jos Chrispijn ma

Re: Resetting user password in cron

2009-07-16 Thread Glen Barber
On Thu, Jul 16, 2009 at 8:39 PM, Jos Chrispijn wrote: > Can someone tell me how I can reset a user's password best in a cron job? > If I do a password change from the prompt, I now have to re-enter the > password, which I would not like to do in a cron job. Thanks/ > Hi, Jos You can use chpass(1)

Resetting user password in cron

2009-07-16 Thread Jos Chrispijn
Can someone tell me how I can reset a user's password best in a cron job? If I do a password change from the prompt, I now have to re-enter the password, which I would not like to do in a cron job. Thanks/ Jos Chrispijn ___ freebsd-questions@freebsd