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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!sh.wide!wnoc-tyo-news!cs.titech!kddlab!jcpltyo!ohayon
  2. From: ohayon@jcpltyo.JCPL.CO.JP (Tsiel Ohayon)
  3. Newsgroups: comp.databases.sybase
  4. Subject: Re: Hiding a password while dumping
  5. Message-ID: <93@jcpltyo.JCPL.CO.JP>
  6. Date: 9 Nov 92 03:43:48 GMT
  7. References: <1688@anagld.analytics.com>
  8. Organization: James Capel Pacific Limited, Tokyo Japan
  9. Lines: 27
  10.  
  11. In article <1688@anagld.analytics.com> rcsmith@anagld.analytics.com (Ray Smith) writes:
  12.  
  13. [RS] FORWARDED MESSAGE
  14.  
  15. [RS] I'm trying to write a shell script executed through cron to perform a 
  16. [RS] Sybase dump.  The problem is as follows:
  17. [RS] The Sybase dump command is a Transact/Sql command.  Therefore, it must be
  18. [RS] invoked using the isql command.
  19. [RS] The isql command normally prompts the user for their Sybase userid and
  20. [RS] passwd.  However, this can be overridden by entering the -U and -P flags
  21. [RS] when invoking isql.
  22. [RS] The problem: The -P flag take the user's unencrypted passwd as argument.
  23. [RS] This means that while the backup is running, any user can see/learn the
  24. [RS] passwd because it is displayed clearly in the output of the ps command.
  25. [RS] The question: Does anyone have any ideas how I can prevent the passwd from
  26. [RS] being displayed?  I'd like to run the backup as a batch process using cron
  27. [RS] (the data can fit on one tape), but don't want to compromise the passwd.
  28.  
  29. I used a C program to do that. If you are interested, I can show how to do
  30. it.
  31.  
  32. Cheers.
  33. -- 
  34. ----8<--------------------------------------------------------------->8------
  35. Tsiel:ohayon@jcpl.co.jp       | If you do not recieve this E-mail, please let me
  36. Employer may not have same | know as soon as possible, if possible.
  37. opinions, if any !         | Two percent of zero is almost nothing.
  38.