Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I prevent the password from being displayed by the UNIX ps command?

Command password Ps Unix
0
Posted

How do I prevent the password from being displayed by the UNIX ps command?

0

On some UNIX platforms and in some versions, isql for UNIX allows the password to be displayed when you run the ps command. Newer versions of isql try to overtype the password string so that it does not display with ps. However, depending on how the operating system stores the password string, this strategy may not be successful. The password is revealed in the ps output only in cases where isql is launched with the password in the command line. Some ways to avoid putting the password in the command line are: • Use the command line -i option rather than the shell redirect (<). isql then displays the password: prompt. % isql -U username -i input.sql -o output.out Password: password • Write a script, placing the password in the first line that isql receives from standard input. isql -U username « EOF password 1> use database 2> go 1> sp_help 2> go 1> quit EOF • Echo the password and pipe it into isql.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.