Mysql socket security (Was: Re: i found something ugly about freeBSD)
From: Melvyn Sopacua (freebsd-questions_at_webteckies.org)
Date: 01/31/04
- Previous message: Melvyn Sopacua: "Re: 5.2 kernel compilation error"
- In reply to: Jorn Argelo: "Re: i found something ugly about freeBSD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd-questions@FreeBSD.org Date: Sat, 31 Jan 2004 02:12:56 +0100
On Friday 30 January 2004 10:20, Jorn Argelo wrote:
> It's up to the administrator of the server to make sure that users
> can't reach the /tmp partition then.
Ehm, you really don't want to advise this.
A proper solution:
/etc/my.cnf:
[mysqld]
socket = /var/run/mysql/socket
Then:
mkdir /var/run/mysql
chown mysql:staff /var/run/mysql
chmod 750 /var/run/mysql
This assumes users in group staff are allowed to access mysql. DO NOT use the
mysql group - that is best left with only the mysql user in it.
-- Melvyn ======================================================= FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 18:01:18 CET 2004 root@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG i386 =======================================================
- application/pgp-signature attachment: signature
- Previous message: Melvyn Sopacua: "Re: 5.2 kernel compilation error"
- In reply to: Jorn Argelo: "Re: i found something ugly about freeBSD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|