The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #1 (permalink)  
Old 09-22-2005
dnidiffer dnidiffer is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 4
script to create users on many servers

Hi all, working on script to create a user acct on all our servers.

for i in `cat $host_file`; do
ssh $i /usr/bin/sudo /usr/bin/mkuser id='bpadm' gecos='NetBackup Admin' 2>&1 >> $log
done

error i get is: 3004-692 Error changing "id" to "bpadm" : Value is invalid.

I have tried this in various ways, various quotes, tried on the cmd line on the target server. tried it without id= part.

I am just trying to create the user name and a value for gecos.
Server is AIX 5.X, shell is Korn.

thanks, dave