mysql socket inaccessible by default

Bug #29676 reported by Abel Cheung
4
Affects Status Importance Assigned to Milestone
mysql-dfsg (Ubuntu)
New
Medium
Unassigned

Bug Description

Because mysqld_safe sets umask to 007, all users except root (SYSTEM A/C,NOT MYSQL A/C) can't connect to mysql server. As a side effect, no web application can work unless they use TCP connection.

=========================
user@mari:~$ mysql -u user -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
user@mari:~$ ls -ld /var/run/mysqld
drwxrwx--- 2 mysql root 80 2006-01-26 01:47 /var/run/mysqld
user@mari:~$ sudo chmod o+x /var/run/mysqld
user@mari:~$ mysql -u user -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 5.0.18-Debian_6-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.