THNKS! (Was Re: Adding a lot of users in a single operation.)

1999-12-03 Thread Jose L Gomez Dans
Thanks for your help. In the end, I used mkpasswd (as included with expect) to do this. It was only after the whole thing was up and running that I found out about chpasswd. I was thinking that since quite a number of people I know start using Linux/Debian at home, and then "fertil

Re: Adding a lot of users in a single operation.

1999-12-02 Thread Joe Block
"Jens B. Jorgensen" wrote: > > The trouble is that none of the utilities (that I know of) allow you to > specify the > password on the command line. Perhaps you can do it with pipes, like the > following. Check the list archives - I posted a script on this list a couple days back that generates

Re: Adding a lot of users in a single operation.

1999-12-02 Thread Jens B. Jorgensen
The trouble is that none of the utilities (that I know of) allow you to specify the password on the command line. Perhaps you can do it with pipes, like the following. Ok, let's say you have a file users.txt with a list of user names you want to add, one per line. for i in $(cat users.txt) ; d

Re: Adding a lot of users in a single operation.

1999-12-02 Thread Ben Collins
On Thu, Dec 02, 1999 at 02:36:25PM -0600, Jens B. Jorgensen wrote: > The trouble is that none of the utilities (that I know of) allow you to > specify the > password on the command line. Perhaps you can do it with pipes, like the > following. This program is included in the passwd package on eve

Re: Adding a lot of users in a single operation.

1999-12-02 Thread Marcin Kurc
here is what I use to add users from the file. On Thu, Dec 02, 1999 at 02:36:25PM -0600, Jens B. Jorgensen wrote: > The trouble is that none of the utilities (that I know of) allow you to > specify the > password on the command line. Perhaps you can do it with pipes, like the > following. > >

Re: Adding a lot of users in a single operation.

1999-12-02 Thread claw
On Thu, 02 Dec 1999 14:36:25 -0600 Jens B Jorgensen <[EMAIL PROTECTED]> wrote: > The trouble is that none of the utilities (that I know of) allow > you to specify the password on the command line. Perhaps you can > do it with pipes, like the following. This is the sort of problem that you use ex

Adding a lot of users in a single operation.

1999-12-02 Thread Jose L Gomez Dans
Hi! I was wondering whether it would be possible to add a number of users with a single command. Ideally, there would be a call to pwgen (or something like that!) and the passwords would be held in a file. Any ideas (apart from "do it in perl!")? Jose -- Jose L Gomez Dans