Skip to Main Content
Linux Server Security, Second Edition
book

Linux Server Security, Second Edition

by Michael D. Bauer
January 2005
Intermediate to advanced content levelIntermediate to advanced
544 pages
23h 44m
English
O'Reilly Media, Inc.
Content preview from Linux Server Security, Second Edition
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Server Installation
|
245
Checking Your Server
If setting up your database server feels like as much work as raising cattle, but with-
out the glamor, you may mix business with pleasure and perform some virtual cow
tipping: sneak up on your database server and try to push it over. From outside your
firewall, see if nmap can prod port 3306. Have nessus poke MySQL holes, including a
missing root password or insecure server version. A search for MySQL at http://cgi.
nessus.org/plugins/search.html shows nine separate plug-ins.
Some tools that I have not yet tested, yet look promising, include http://www.zone-h.org/
files/49/finger_mysql.c and a commercial vulnerability assessor called AppDetective
(http://www.appsecinc.com/products/appdetective/mysql/).
The MySQL Conguration File
The file /etc/my.cnf contains overall directives for the MySQL server. Here are the
contents of a simple one:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
datadir is the directory containing the database directories and files. socket is the file
name of the Unix-domain socket for MySQL to use for local connections.
user is the
Unix user who runs the database, and should not be root.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux: Powerful Server Administration

Linux: Powerful Server Administration

Uday Sawant, Oliver Pelz, Jonathan Hobson, William Leemans
Linux Server Hacks

Linux Server Hacks

Rob Flickenger
Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones

Publisher Resources

ISBN: 0596006705Supplemental ContentCatalog PageErrata