The UNIX and Linux Forums  


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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
useradd earlysame55 Shell Programming and Scripting 4 08-28-2007 01:37 PM
[ksh] useradd chodaboy UNIX for Dummies Questions & Answers 3 06-30-2006 10:24 AM
useradd Selma SUN Solaris 4 06-13-2005 08:33 AM
useradd dorilevy UNIX for Advanced & Expert Users 2 10-19-2004 03:15 AM
useradd ortsvorsteher UNIX for Dummies Questions & Answers 6 05-30-2002 04:28 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-08-2004
steffa steffa is offline
Registered User
  
 

Join Date: Sep 2004
Posts: 2
automate useradd

Hi

I wounder if some one knows how to make a script to automate user adding?
When i am starting the script it will add user like 04pers00 and fowllowing untill that i'm quit.
The password will be a standard password typed in the file.

I'm unsing Sun solaris 9 on Intel

Sorry for my english!
/stefan
  #2 (permalink)  
Old 09-14-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Benefit of the doubt here that this isn't a homework question - you should really post what you've got so far to show you've actually made some effort to solve your own problem. Anyway...... I have a script on my site that might help a bit. It's very specific to my needs (SuSE) but will give you a shove in the right direction.

The script does things to validate which shell you enter for the user, (i.e. does it exist in /etc/shells). You may decide that you don't want this functionality in your script.

Peace
ZB
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0