On Apr 18, 01:11:54 AM (Thursday), or Thereabouts, Arvind wrote:
:: if i need to add a user in linux and i need to specify a default
:: password...
:: can i do it with one command
:: 

passwd command has a --stdin switch which you can use

write a script to invoke useradd first and then passwd --stdin

Regards,
   _/_/_/_/  _/_/_/ _/_/_/_/   Ravi Ananth Giri K 
     _/    _/      _/         http://www.ishoni.com 
    _/    _/_/_/  _/  _/_/   Broadband For Everyone
   _/        _/  _/    _/   -------------------------
_/_/_/  _/_/_/  _/_/_/_/    Information Systems Group

Attachment: msg14225/pgp00000.pgp
Description: PGP signature

Reply via email to