« Return to Thread: [Cooker] [2009.1] What is errcode: 13 when trying to allocate files as root

Re: [Cooker] [2009.1] What is errcode: 13 when trying to allocate files as root

by Colin Guthrie-8 :: Rate this Message:

Reply to Author | View in Thread

'Twas brillig, and Frank Griffin at 30/06/09 21:49 did gyre and gimble:

> Steve Morris wrote:
>> /usr/sbin/mysqld: Can't create/write to file '/root/tmp/ibSy10pn'
>> (Errcode: 13)
>>
>> What does this mean and why does it occur even if I issue chmod 777
>> /root/tmp
>>
>
> Start with /usr/include/errno.h and follow the #includes until you find
> the standard errno numbers.
>
> Then realize that you can't create in /root/tmp if you can't cd to
> /root, which has perms rwx------.  ;)

Have a look in the /etc/sysconfig/mysql file and in particular .rpmnew
variants.

Of particular interest are the lines:

# (oe) set TMPDIR and TMP environment variables
TMPDIR="/var/tmp"
TMP="${TMPDIR}"

These variables ensure things work form the init scripts etc. but wont
cover running them manually. If you set these vars yourself and export
them, things will work as expected.

Col


--

Colin Guthrie
cguthrie(at)mandriva.org
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]

 « Return to Thread: [Cooker] [2009.1] What is errcode: 13 when trying to allocate files as root