On Thursday 18 April 2002 13:41 pm, 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
I used to do this with a script: #!/bin/bash if [ $# -lt 2 ]; then echo "Usage: useradd username passwd [ useradd options ]" 1>&2 exit 1 fi user=$1; shift pass=$1; shift useradd $* $user echo $pass | passwd --stdin $user #Binand _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
