-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Raj" == Raj Shekhar <[EMAIL PROTECTED]> writes:
Raj> On Mon, 2003-12-22 at 13:31, s nagar wrote:
>> hi everyone
>>
>> i need to ask you one thing that whether it is possible to
>> create users in bulk rather than creating single user in case
>> there are many users to be created and simultaneously giving
>> them same password as their username. in case you have some
>> solution then please do reply.
Raj> There is a utility called 'useradd' which comes with the
Raj> shadow-utils package. You can use it either interactively or
Raj> pass it the options using the command line. The main options
Raj> for you would be
Raj> useradd [-p passwd] [-s shell] login-name
Raj> You can use this utility in your shell script. Use the shell
Raj> script to read a user name from the txt file, use useradd to
Raj> create the user. If you try google, I think you may come
Raj> across scripts which do this.
Or even better, man newusers:
NAME
newusers - update and create new users in batch
Regards,
- -- Raju
- --
Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>
iD8DBQE/58nUyWjQ78xo0X8RAjxjAJ9liJlTmIb5eMYi/vcFQjNC8FGvFACeLFXJ
wqjVSyHq6yLk9IMgM8QKAuU=
=qohx
-----END PGP SIGNATURE-----
_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd