home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / sybase / 276 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!news.tek.com!uw-beaver!cs.ubc.ca!destroyer!ncar!csn!cherokee!teton!tpoind
  3. From: tpoind@teton ( Tom Poindexter)
  4. Subject: Re: Hiding a password while dumping
  5. Message-ID: <1992Nov9.144859.11060@advtech.uswest.com>
  6. Summary: a little shell magic
  7. Sender: news@advtech.uswest.com (Radio Free Boulder)
  8. Nntp-Posting-Host: teton.advtech.uswest.com
  9. Organization: U S WEST Advanced Technologies
  10. References: <1688@anagld.analytics.com>
  11. Date: Mon, 9 Nov 1992 14:48:59 GMT
  12. Lines: 24
  13.  
  14. In article <1688@anagld.analytics.com> rcsmith@anagld.analytics.com (Ray Smith) writes:
  15. [...]
  16. >The isql command normally prompts the user for their Sybase userid and
  17. >passwd.  However, this can be overridden by entering the -U and -P flags
  18. >when invoking isql.
  19. >
  20. >The problem: The -P flag take the user's unencrypted passwd as argument.
  21. [...]
  22.  
  23. Try this:
  24.  
  25. echo "dump database xx to device" | cat /sybase.pw - | isql -Usa
  26.  
  27. where /sybase.pw is the sa password, and the file mode is -rw-------,
  28. (600 for you octal types), owned by root.
  29.  
  30. The '-' in the cat command line causes stdin to be read.
  31.  
  32. Of course, you can stick the sybase password file anywhere, not 
  33. necessarily in /.
  34.  
  35.  
  36. Tom Poindexter        tpoind@uswest.com
  37.  
  38.