Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a shell script that c

Status
Not open for further replies.

aneesz

Technical User
Nov 12, 2000
17
0
0
MY
How to create a shell script that can change the characteristics of multiple users at once rather than using SMIT.

 
Create a shell script named, say, ModUsers with this:
[tt]
#! /usr/bin/ksh
for USER in $*
do
chuser attribute=new_value $USER
done
[tt]

Try [tt]man chuser[/tt] to get a list of user attributes and their possible values.
Use the script like this:
[tt]
ModUsers user1 user2 user3
[tt]

I hope it works...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top