Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96388 - /var/run/mysqld wrong owner
Summary: /var/run/mysqld wrong owner
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 08:39 UTC by Jay Proulx
Modified: 2005-07-29 04:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Proulx 2005-06-17 08:39:01 UTC
When emerging mysql 4.0.24 the /var/run/mysqld folder that was created was owned
by root:root, not mysql:mysql.

I unmerged and re-emerged, with the same results.


Reproducible: Always
Steps to Reproduce:
emerge mysql
/etc/init.d/mysql start
Actual Results:  
Mysql complained about not being able to bind to a socket, it wouldn't start,
had to be zapped. /var/run/my

Expected Results:  
Mysql should have started normally
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-17 08:48:54 UTC
Are you using mythbackend?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-18 03:16:20 UTC
See comment #1. 
Comment 3 Jay Proulx 2005-06-18 05:29:09 UTC
Not as far as I am aware, this was just after a clean gentoo 2005.0 install, I
rebooted and:
`emerge sun-jdk samba mod_php tomcat jboss`

I used the i686 stage 3 tarball and the following make options:
CFLAGS="-O3 -march=athlon -fomit-frame-pointer"
MAKEOPTS="-j2"
USE="-gtk -gnome -X -qt -kde -cdr -cups xml xml2 innodb oc gd ssl mysql apache2
jpeg png doc jikes"

(I think oc is a typo, but it's in there anyway :P)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-18 05:50:06 UTC
Hmm, pretty strange, the ebuild seems to be OK...

<snip>
pkg_postinst() {
        mysql_get_datadir

        #empty dirs...
        [ -d "${ROOT}/${DATADIR}" ] || install -d -m0750 -o mysql -g mysql
${ROOT}/var/lib/mysql
        [ -d "${ROOT}/var/run/mysqld" ] || install -d -m0755 -o mysql -g mysql
${ROOT}/var/run/mysqld
        [ -d "${ROOT}/var/log/mysql" ] || install -d -m0755 -o mysql -g mysql
${ROOT}/var/log/mysql
</snip>

Is this broken just in stage 3?
Comment 5 Jay Proulx 2005-06-18 12:13:04 UTC
Before that I installed the athlon-xp stage 3 and it worked alright..
Comment 6 Francesco R. (RETIRED) gentoo-dev 2005-07-29 04:58:15 UTC
Seem fixed to me, washing all the bug I can I wish to close this one too ;)