Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2006 02:16:17 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: change password without shell access
Message-ID:  <459247F1.80004@u.washington.edu>
In-Reply-To: <c6ef380c0612270042t168869b9y9aafabb220de5136@mail.gmail.com>
References:  <c6ef380c0612270042t168869b9y9aafabb220de5136@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Perttu Laine wrote:
> Hello!
> 
> I'm looking tool for freebsd that allows user to change their password
> without access to server. If there are any? We're running mail server with
> nologin account and would like to let users change their password. From www
> would be preferred way. And possibly to change their .forward file too. So
> are there any tools for this?

	No tools are present that I know of, but using a little Perl/CGI
or PHP to execute passwd is pretty simple. Just be sure to use a series
of checks so people don't send in chars that can be interpreted for
execution or have special purpose uses by shells.

Don't suggest this solution as it is insecure, but it's an example:
<http://www.cyberciti.biz/tips/change-linux-or-unix-system-password-using-php-script.html>.
Don't remember how to change the password using command line arguments
either, but I know it can be done somehow (pw? passwd?), some way..

- -Garrett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFkkfxEnKyINQw/HARAnHbAJ48STx6HSweC70knqKg0jTqO4sMygCgrWhJ
sumICGu1LY1AIzHtW2uZrgo=
=ios+
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?459247F1.80004>