I have the ID and password in a file like this:
id:admin
pw:password

and the script reads them in using these lines:
ID=`grep "^id" $PWFILE |cut -d: -f2`
PW=`grep "^pw" $PWFILE |cut -d: -f2`

(using /bin/sh on Solaris)

and of course the file has 400 permissions.

If I ever have a need for other "secret" information in TSM-related scripts,
it will go into the same file.

> -----Original Message-----
> From: Lisa Faulconer [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 05, 2000 3:31 AM
> To:   [EMAIL PROTECTED]
> Subject:      ADMIN Password Issues
>
> We currently have our ADMIN id and password in several scripts.  Our
> scripts perform a number of functions from redirecting output from the act
> log to a file (AIX) to issuing the DRM commands.  The scripts are
> scheduled
> with the *SM scheduler.
>
> Macros would eliminate the need to have the id and password in a file but
> macros can not be scheduled with the *SM scheduler.
>
> Has anyone addressed this issue?  Appreciate any suggestions.
>
> Lisa

Reply via email to