Hi, Why not write a script with variables and get the variable from the text file. I am not very familiar with scripting but it should be easy. Or probably through makefile, in which case, I could help, though makefiles are not meant for this purpose.
Regards, Venky >-----Original Message----- >From: Shehjar Tikoo [mailto:[EMAIL PROTECTED] >Sent: Thursday, March 13, 2003 12:57 PM >To: multiple recipients of >Subject: [ilugd]: Automating accounts creation on AIX and Linux. > > >Hey everyone > >I have a problem, its mostly about AIX but i thought >if i could do it on linux too. > > >I need to automate the process of creating user >accounts on an AIX 4.3 on an RS/6000 machine so that >the user names are read from a text file with each >line containing one user name only.I also want that >the password remain the same for all the user accounts >till the user logs in for the first time when he'll be >prompted for changing his password. >I need to do this because there are many hundreds of >user accounts that need to be created at one time and >it would be foolish to spend so much time typing in >the mkuser <username> and passwd <username> >repetitively. > >What I want to know is if there is a script or program >in C that does this sort of a thing? >If not, can someone tell me if there is a system call >that creates a user account on being given username >and a password or even if such a system call doesnt >exist, can you give me some pointers for doing this on >my own. > > >I would also like to know if this can be done on a >Linux server? > >Shehjar > >__________________________________________________ >Do you Yahoo!? >Yahoo! Web Hosting - establish your business online >http://webhosting.yahoo.com > > ================================================ >To unsubscribe, send email to [EMAIL PROTECTED] with >unsubscribe in subject header. Check archives at >http://www.mail-archive.com/ilugd%40wpaa.org > ================================================ To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org