Permissions of /var/run/mysqld too strict with Dapper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
New
|
Medium
|
Unassigned | ||
mysql-dfsg-4.1 (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
The permissions on /var/run/mysqld directory are too strict, after dist-upgrading from breezy to dapper:
$ sudo ls -ld /var/run/mysqld
drwxrwx--- 2 mysql root 80 2006-01-10 18:11 /var/run/mysqld
This causes only the "mysql" user (and root) to be able to connect to MySQL through the socket in there
(/var/run/
also):
$ mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/
I could not find a place where it might have happened. Perhaps it's even unrelated to the mysql-server
package.
I'd be interested in what caused this.
This fixed it:
$ sudo chmod a+x /var/run/mysqld
The perms on /var/run/mysqld get reset here to rwxrwx--- here on every reboot, but I could not find anything
in /etc/init.d/ that would cause this..?!