Re: passwd
On Tue, 16 Jun 1998, Nathan E Norman wrote:
> On Tue, 16 Jun 1998, Jorge Kinoshita wrote:
>
> : Hello,
> : I would like to add many users and build a script to it. I have one
> : problem with passwords. I would like that the users could alter their
> : passwords by the web interface, so I have to write a script for it. My
> : problem is: how can I set the password for some user using a simple
> : command? Every program I see requires some kind of interactivity that it
> : is no good for a script.
> : Thank you for any help.
> : Jorge Kinoshita.
>
> As someone (forgot who! Sorry :/ ) pointed out to me, the `chpasswd'
> command is useful when used in a script. It accepts username/password
> pairs on standard input. The password can be encrypted or unencrypted,
> your choice. It's part of the base install, and pretty darn useful :)
>
If you're interested in taking a look, I put together some perl scripts
for the automatic creation of users, with automatic name generation,
passwords, etc, etc. I did them a while ago, so they're a little bit
kludgy (ie. I didn't use chpasswd because I didn't know about it!), but
they work ok for me. You can find them at:
http://ocsc.ormond.unimelb.edu.au/~caleishm/stuff/usercreate-1.0.tar.gz
I've mentioned this on the list before, but since I didn't get any
negative responces I figure it's safe to mention it again. Let me know
what you think. Oh, make sure you read the README, it's got all the
standard disclamer stuff so that you know how bad my code is ;)
Also, I plan to make this (and a few other projects) a bit nicer and then
hopefully package them. Can anyone give me some info on developing my own
packages for addition to debian? How do I go about it and what are the
criteria I need to follow?
Bye for now
Chris
-------------------------------------------------------------------
Debian GNU/Linux.... Ooohh You are missing out!
-------------------------------------------------------------------
Reply with subject 'key' for PGP public key. KeyID A9E087D5
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: