Dec 3, 2000 #1 aneesz Technical User Nov 12, 2000 17 MY How to create a shell script that can change the characteristics of multiple users at once rather than using SMIT.
How to create a shell script that can change the characteristics of multiple users at once rather than using SMIT.
Dec 5, 2000 #2 ElgisRamon MIS Jun 14, 1999 606 US 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... Upvote 0 Downvote
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...