home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!news.tek.com!uw-beaver!cs.ubc.ca!destroyer!ncar!csn!cherokee!teton!tpoind
- From: tpoind@teton ( Tom Poindexter)
- Subject: Re: Hiding a password while dumping
- Message-ID: <1992Nov9.144859.11060@advtech.uswest.com>
- Summary: a little shell magic
- Sender: news@advtech.uswest.com (Radio Free Boulder)
- Nntp-Posting-Host: teton.advtech.uswest.com
- Organization: U S WEST Advanced Technologies
- References: <1688@anagld.analytics.com>
- Date: Mon, 9 Nov 1992 14:48:59 GMT
- Lines: 24
-
- In article <1688@anagld.analytics.com> rcsmith@anagld.analytics.com (Ray Smith) writes:
- [...]
- >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.
- [...]
-
- Try this:
-
- echo "dump database xx to device" | cat /sybase.pw - | isql -Usa
-
- where /sybase.pw is the sa password, and the file mode is -rw-------,
- (600 for you octal types), owned by root.
-
- The '-' in the cat command line causes stdin to be read.
-
- Of course, you can stick the sybase password file anywhere, not
- necessarily in /.
-
-
- Tom Poindexter tpoind@uswest.com
-
-