×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Perl script to aid in user account creation?

Perl script to aid in user account creation?

Perl script to aid in user account creation?

(OP)
Hi,

  I'm interested in writing a perl script that will help me create user accounts on our system.  I'm using Solaris 7 on a sparc Ultra which is the NIS master.   I don't use the "admintool" because frankly it is insufficient.  Currently when I create users I have to go to my passwd, shadow and auto_home files located in /var/yp/maps and edit them individually adding the username, group, gcos, homedir etc.. in the passwd file, then editing the shadow file adding the username followed by 8 colons, then editing auto_home adding the username followed by tab and then hostname:/home/directory/username.  When the editing is complete I run /var/yp/make.  This is very tedious and time consuming when I have 15 -20 users to create so I want to write this perl script where I can list the users realname and then user name, host server (i.e., John Public jpublic servername) in a seperate file and have the perl script read the names from the file backup the files to be edited and add the information to those files then run /var/yp/make.  But before I do this I want to know if something that does this or something similar already exists.  If not, since I'm new to Perl, what would be the best way to start this project?  Are there modules I should get (already got the AcctInfo-1.18 module) that would help.  Any suggestions or comments would be appreciated.


Jon Zimmer
jon.zimmer@pf.net
The software required `Windows 95 or better', so I installed Linux.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close