Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

storing passwords in a file

 
   Database Forums (Home) -> Sybase RSS
Next:  Fact Table  
Author Message
ashishg2

External


Since: Dec 08, 2004
Posts: 11



(Msg. 1) Posted: Tue Apr 26, 2005 10:38 pm
Post subject: storing passwords in a file
Archived from groups: comp>databases>sybase (more info?)

Hi,

I want to store the sa password in a file which I want to read from a
script file (which will run via cron).

Is there a way to do it so that the unix admin cannot read the
password?

Thanks and regards,
Ashish

 >> Stay informed about: storing passwords in a file 
Back to top
Login to vote
crazy_monk




Joined: Jun 29, 2005
Posts: 14



(Msg. 2) Posted: Wed Jun 29, 2005 1:40 am
Post subject: Re: storing passwords in a file [Login to view extended thread Info.]

Hi ashish....
read ur query..
I just made a script where i get the input (login name and password) from the user.
I tried by keeping the password in a file and then loggin in .I was succesful!
Just try this
>store the password ...for eg..ashish in a file secret
> now login as "sa"

isql -Usa -Sase_xxx -w100 -P `cat secret`
....here I have used cat command .
try this

 >> Stay informed about: storing passwords in a file 
Back to top
Login to vote
Anthony Mandic

External


Since: Aug 27, 2004
Posts: 149



(Msg. 3) Posted: Thu Jun 30, 2005 4:55 am
Post subject: Re: storing passwords in a file [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
crazy_monk




Joined: Jun 29, 2005
Posts: 14



(Msg. 4) Posted: Thu Jun 30, 2005 5:45 am
Post subject: Re: storing passwords in a file [Login to view extended thread Info.]

Hi anthony...
i tried the way which u told me to do...
bt am unsuccessful..
but there is no need to pipe the commands...
even with cat u can provide the password .also it is nt visible with ps command...
kindly throw some more light on this topic...
regards
monk
 >> Stay informed about: storing passwords in a file 
Back to top
Login to vote
Thomas Gagne

External


Since: Jun 23, 2004
Posts: 48



(Msg. 5) Posted: Thu Jun 30, 2005 4:12 pm
Post subject: Re: storing passwords in a file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Using "is", an isql replacement, I can pass username and password as
environment variables, so they won't appear on the command line.
 >> Stay informed about: storing passwords in a file 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
what is the quick and easy way to sync passwords across th.. - Hi all, I have 2 Sybase instances where I have 'few' common logins. I wanted to dump the passwords from one sybase instance to another instance. I tried to do 'select name, password from master..syslogins where name=&interested_logins&' .. fr...

Migrating syslogins from Unix to Windows - how to preserve.. - Is there any way of migrating master.syslogins from a Sybase Unix (Solaris 9) to windows (Server 2003) environment ? I have used bcp to move syslogins between sybase on Unix server - no problem. The bcp in appears to work fine onto the windows server,..

file in database - What is the best way to keep files in db? (like email attachments)?

How to specify null delimited in format file - Hello, Can anyone help me on this issue. I have a file which is of fixed-length. so its delimiter would be a null string (""). I want of bcp this file using a format file. Does anyone know how to specify null string as delimiter in format file....

Retrieve mounted file system name for a directory - How do i get the mounted file system name for a directory. Is there any shell command ( in solaris). I don't want to use functions like ustat,...
   Database Forums (Home) -> Sybase All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]