> -----Original Message----- > From: Rowdy [mailto:[EMAIL PROTECTED] > Sent: Saturday, 18 June, 2005 17:53 > To: Chris Lee > Cc: 'Russell Howe'; bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] RE: Database creation > > Chris Lee wrote: > >>-----Original Message----- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] On Behalf > >>Of Russell Howe > >>Sent: Saturday, 18 June, 2005 06:49 > >>To: bacula-users@lists.sourceforge.net > >>Subject: Re: [Bacula-users] RE: Database creation > >> > >>On Sat, Jun 18, 2005 at 08:21:11PM +1000, Rowdy wrote: > >> > >>>./make_mysql_tables -u bacula -ppassword > >>> > >>>Note that there is no space between -p and password - this > >> > >>is a MySQL > >> > >>>convention. > > > > > > --password=mydbpass > > > > -p just prompts for password AFAIK > > Yes, -p by itself (i.e. followed by a space) does prompt for > a password. > > -ppassword (with no space between the -p and the password) > does not, but > the password is visible in the output of ps(1). The > --password= option > will also show the password in ps(1)'s output. > > Rowdy
Would it be sane to use -p when calling scripts such as make_catalog_backup and add the password as the first line of data sent to mysql in that script? This would keep the password out of ps and (presumably) the only users who would see it in the script would be users who have administrative access (gid root) anyway. Also, my appologies for not properly reading your former message. I thought you were asking why -ppassword didn't work, rather than answering someone else. Thanks, Chris ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users