home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!anagld!rcsmith
- From: rcsmith@anagld.analytics.com (Ray Smith)
- Newsgroups: comp.databases.sybase
- Subject: Hiding a password while dumping
- Message-ID: <1688@anagld.analytics.com>
- Date: 7 Nov 92 00:10:40 GMT
- Organization: Computer Sciences Corporation - Systems Engineering Division
- Lines: 32
-
- Someone recently sent me the following message and I couldn't answer them so
- I thought I would appeal to the collective wisdom of the net. If you have
- any suggestions please pass them on and I will make sure the originator gets
- them.
-
- Advance thanks,
- Ray
-
- =================
- FORWARDED MESSAGE
- =================
- I'm trying to write a shell script executed through cron to perform a Sybase
- dump. The problem is as follows:
-
- The Sybase dump command is a Transact/Sql command. Therefore, it must be
- invoked using the isql command.
- The isql command normally prompts the user for their Sybase userid and
- passwd. However, this can be overridden by entering the -U and -P flags
- when invoking isql.
-
- The problem: The -P flag take the user's unencrypted passwd as argument.
- This means that while the backup is running, any user can see/learn the
- passwd because it is displayed clearly in the output of the ps command.
-
- The question: Does anyone have any ideas how I can prevent the passwd from
- being displayed? I'd like to run the backup as a batch process using cron
- (the data can fit on one tape), but don't want to compromise the passwd.
- --
- Ray Smith Computer Sciences Corporation
- One of these should work: rcsmith@sed.csc.com - or -
- uunet!anagld!rcsmith - or - rcsmith@aplcen.apl.jhu.edu
- rcsmith@analytics.com - or - RCSmith@DOCKMASTER.NCSC.MIL
-