[KLUG Members] mysql writes to a file with root permissions

Patrick McGovern members@kalamazoolinux.org
Thu, 18 Apr 2002 09:06:53 -0400


--=_C89547E6.47266673
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

I am using a mysql one line command within a shell script.  It extracts =
data from an sql script and the output is redirected to a file.  The =
output file has root permissions yet the username for the mysql command is =
not root.  Is there a way to have mysql set the permissions to allow user =
access to that file?=20
Pat

--=_C89547E6.47266673
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" http-equiv=3DContent-Type=
>
<META content=3D"MSHTML 5.00.3314.2100" name=3DGENERATOR></HEAD>
<BODY style=3D"FONT: 8pt MS Sans Serif; MARGIN-LEFT: 2px; MARGIN-TOP: =
2px">
<DIV><FONT size=3D1>I am using a mysql one line command within a shell=20
script.&nbsp;&nbsp;It extracts&nbsp;data from an sql script and the=20
output&nbsp;is redirected to a file.&nbsp; The output file has root =
permissions=20
yet the username for the mysql command is not root.&nbsp; Is there a way =
to have=20
mysql set the permissions to allow user access to that file? </FONT></DIV>
<DIV><FONT size=3D1>Pat</FONT></DIV></BODY></HTML>

--=_C89547E6.47266673--