Peter’s blog

  • rss
  • Home
  • About
  • Contact

mysql_history and passwords

Peter Skarpetis | April 20, 2005 | 10:00 pm

In order to provide the up/down arrow command history, the mysql program stores anything you type in the file .mysql_history in your home directory. For most commands this is ok but what about grant statements?

If you regularly use grant or update statements to add or modify users and passwords, then anyone with read access to the file .mysql_history can see the usernames and passwords required to gain access to your database.

To avoid such security traps just use your favourite text editor and delete the offending lines from the file ~/.mysql_history. Do this each time you issue a grant or update statement containing a password and your site will be much more secure.

Technorati Tags: mysql, security

Categories
Blogged
Comments rss
Comments rss
Trackback
Trackback

« Safari 1.3 shenanigans xemacs 21.4.17 and Tiger »

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Recent Posts

  • Wplordpress app for iPhone
  • Apple I Basic plucked from vintage cassette tape, turned into MP3 - Boing Boing Gadgets
  • Chatswood Apple store opening soon
  • Manly Dam mountain biking track
  • Scott bike frame falls to pieces
  • Internet kiosk uses Ubuntu
  • udrepper: Memory and Cache Paper
  • Hasselblad’s 39 megapixel H3DII-39MS DSLR brings the multi-shot
  • Switched from Firefox to Opera
  • Mountain Bike Hits 130.7 MPH … on Snow

Categories

  • Apple
  • Blogged
  • Cycling
  • Linux
  • Photos
  • Programming
  • Videos

Blogroll

  • ALBINO colourinable T-shirts
  • My Wiki
  • Serendipity Software
  • Wing

Recent Comments

  • Peter Skarpetis on My new bitching mythtv box
  • Matthieu on My new bitching mythtv box
  • Matthieu on My new bitching mythtv box
  • Mike Adams on Getting a handle on usbprint.sys
  • Josh on Hasselblad’s 39 megapixel H3DII-39MS DSLR brings the multi-shot
  • Peter Skarpetis on Getting a handle on usbprint.sys
  • Den on Getting a handle on usbprint.sys
  • Aub on Getting a handle on usbprint.sys
  • David on Getting a handle on usbprint.sys
  • Brandon on Getting a handle on usbprint.sys

Tags

Apple australia biking computers iPhone mountain retro sydney
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox