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
(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script praka Shell Programming and Scripting 6 04-15-2009 07:09 AM
pdadmin script help needed sophos Shell Programming and Scripting 11 04-13-2009 01:42 PM
need inputs on how i can change my script to reduce amount of time the script takes madhul2002 Shell Programming and Scripting 1 04-01-2009 08:40 PM
create a shell script that calls another script and and an awk script magikminox Shell Programming and Scripting 0 06-26-2008 03:50 AM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 04:06 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-11-2009
sophos sophos is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 20
pdadmin script

Hello all,

I would need a scirpt to perform the following operation:
  1. I would like to give a spreadsheet as input with 3 columns with firstname,lastname,userid in order
  2. The script should read from the spreadsheet and search if each user exists in particular groups "Group1" by using the command user show-groups userx and grep for group group1.If user has group1 then continue with the following commands :

  • pdadmin -a sec_master -p XXXXX user modify userx password passwordx
  • pdadmin -a sec_master -p XXXXX user modify userx password-valid no
or

If the user doesnt belong to the group group1 then do the following commands:

  • pdadmin -a sec_master -p XXXXX group modify group1 add userx
  • pdadmin -a sec_master -p XXXXX user modify userx account-valid yes
  • pdadmin -a sec_master -p XXXXX user modify userx password passwordx
  • pdadmin -a sec_master -p XXXXX user modify userx password-valid no
The values of XXXXX,group1,passwordx should be requested when the script is run.

Last edited by sophos; 06-11-2009 at 01:44 PM..
 

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 02:40 PM.


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