Re: Resetting user password in cron
Glen Barber glen.j.bar...@gmail.com writes: On Thu, Jul 16, 2009 at 8:39 PM, Jos Chrispijnj...@webrz.net 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) in root's crontab: http://www.freebsd.org/cgi/man.cgi?query=chpasssektion=1 And note the '-p' option in particular. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Resetting user password in cron
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.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Resetting user password in cron
On Thu, Jul 16, 2009 at 8:39 PM, Jos Chrispijnj...@webrz.net 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) in root's crontab: http://www.freebsd.org/cgi/man.cgi?query=chpasssektion=1 -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Resetting user password in cron
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 man pw man chpass Josef -- Josef Grosch | Another day closer to a | FreeBSD 7.2 jgro...@mooseriver.com | Micro$oft free world | Berkeley, Ca. pgp9eDtJNy3a1.pgp Description: PGP signature
Re: Resetting user password in cron
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), specifically usermod command, -h and -H option. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Resetting user password in cron
On 7/16/09, Jos Chrispijn j...@webrz.net 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 :) not tried it myself. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org