Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Possible security issue with the use of 'ps'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Possible security issue with the use of 'ps'
Authored by: sharumpe on Apr 21, '03 11:46:47AM

There are plenty of reasons why you would want to specify credentials in a non-interactive fashion. If you want to automate the up/downloading of files, you certainly don't want to have to enter things by hand.

Some programs that run on the command line will allow you to specify a file to grab credentials from (smbclient is an example of this). Some do not. A little bit of Perl can get around this, but it's not trivial if you don't know Perl (and I'm sure there are other solutions). Check the man pages (man command) to see if the command you're using supports something like this.

In general, if you have multiple users on your machine, you should avoid any command-line that includes your username and (especially) your password in clear text. If you are the only user, it's not a big deal.

Mr. Sharumpe



[ Reply to This | # ]