The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 03-22-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131

Code:
#! /usr/bin/ksh
cat >> /etc/passwd << \EOF
joeblow:x:1158:20:Joseph Q Blow:/home/joeblow:/bin/ksh
tomjones:x:1159:20:Thomas Jones:/home/tomjones:/bin/ksh
EOF
cat >> /etc/shadow << \EOF
joeblow:xxxxyyyyzzzz1:13220::::::
tomjones:xxxxyyyyzzzz1:13220::::::
EOF
exit 0