home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / sybase / 266 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.7 KB

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