[rhn-users] Mysql permission denied

Pete Masse pete at chemistry.montana.edu
Tue Aug 1 02:40:55 UTC 2006


Rigoberto,

I've been meaning to get back to you help.  Thank you by the way.  The
cause for the access denied was caused by improperly configured SELinux. 
After adjusting the extended attributes, the problem went away.  Thanks
Again.

Pete


> Pete,
>
> I believe "mysqld" runs as user "mysql".  For
> starters, try to "su - mysql" and see if you can do
> something like "cat libz.so.1 > /dev/null".  I you
> can't, then check the permissions on the parent
> directories of "libz.so.1".
>
> Also, as root, try to copy the "libz.so.1.2.2.2" to
> another name and then try to access the copy as user
> "mysql".  I've seen some funky stuff where I can't
> access some files that I have untarred because of some
> Linux security thing (I'm guessing) but I can access
> the copy.
>
> Lastly, make sure that both the binary and library are
> either both 32-bit or both 64-bit by using the "file"
> command to verify.
>
> Rigoberto
>
> --- Pete Masse <pete at chemistry.montana.edu> wrote:
>
>> I've upgraded from mysql-server-4.1.19-1.FC4.1 to
>> mysql-server-4.1.20-1.FC4.1.  After doing so mysqld
>> will not start and the
>> following error appears in the mysqld log file.
>>
>> /usr/libexec/mysqld: error while loading shared
>> libraries: libz.so.1: cannot
>> open shared object file: Permission denied
>>
>> Permissions on this file that is located in
>> /usr/lib/ appear as follows, the
>> same as they were with the previous version of
>> mysql:
>>
>> lrwxrwxrwx  1 root root 15 Jun 22 06:39 libz.so.1 ->
>> libz.so.1.2.2.2
>> -rwxr-xr-x  1 root root 75568 Jul 22  2005
>> libz.so.1.2.2.2
>>
>> After much googling and experimentation, I can't fix
>> this problem.   Has
>> anyone seen this before?
>>
>> Pete
>>
>> _______________________________________________
>> rhn-users mailing list
>> rhn-users at redhat.com
>> https://www.redhat.com/mailman/listinfo/rhn-users
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users
>


-- 
Pete Masse
Information Systems
Department of Chemistry/Biochemistry
108 Gains Hall
Montana State University - Bozeman
Bozeman Montana 59717
(406) 994-5379
pete at chemistry.montana.edu
www.chemistry.montana.edu




More information about the rhn-users mailing list