By analyzing the mode of HP-UX users management, according to actual instance, using perl script to read and write relative files, or using shell script to call relative commands circularly,two methods are introduced to add and delete users as a batch.