View Single Post

  #9 (permalink)  
Old 11-04-2007, 10:41 AM
TECK TECK is offline
Junior Member
User
 
Join Date: Apr 2007
My distro: CentOS 5
Posts: 9
Rep Power: 0
TECK is on a distinguished road
Default

I forgot to mention one thing. I chattr'ed the key files in /srv/etc directory.
My group file looks like:
Code:
root:x:0:root
mysql:x:27:
lighttpd:x:101:
and my passwd file is:
Code:
root:x:0:0:root:/root:/bin/bash
mysql:x:27:27:MySQL Server:/var/lib/mysql:/sbin/nologin
lighttpd:x:100:101:Web Server:/var/www:/sbin/nologin
I have the /srv/var/lib/mysql directory chowned by mysql.
As you noticed, I don't use the default RPM's, I built my own, with custom directories/locations, so is less predictable for hackers go gain access to key areas.
__________________
yqed.com (why queued) - my blog

Last edited by TECK; 11-04-2007 at 11:14 AM..
Reply With Quote