can't start mysql56 after move datadir

Brandon Allbery allbery.b at gmail.com
Fri Feb 13 09:14:39 PST 2015


On Fri, Feb 13, 2015 at 12:05 PM, Murray Eisenberg <
murrayeisenberg at gmail.com> wrote:

> Isn't there some safer way to be able to use mysql with a datadir in a
> non-default location (after specifying it in my.cnf, of course)?


You can use ACLs to only grant that permission to the _mysql user (see ACL
MANIPULATION OPTIONS in `man chmod`, or use Get Info in the Finder and see
the "Sharing and Permissions" section at the bottom of the info pane). But
in general granting directory search permission is common and not
considered to be a significant security issue. In particular, by default
everything up to /Volumes/MacHD/Users/$USER will generally have a+x.

pyanfar:4326 Z$ sh -c 'oIFS="$IFS"; IFS=/; set -- $(pwd); p=; for d; do
IFS="$oIFS"; p="$p/$d"; ls -ld "$p"; done'
drwxr-xr-x  34 root  admin  1224 Feb 12 07:17 /
drwxr-xr-x  6 root  admin  204 Aug 29 11:43 //Users
drwxr-xr-x+ 61 allbery  staff  2074 Feb 13 12:06 //Users/allbery
drwx------@ 57 allbery  staff  1938 Feb 13 11:19 //Users/allbery/Library
drwx------+ 187 allbery  staff  6358 Feb 13 12:12
//Users/allbery/Library/Preferences

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20150213/78fde940/attachment.html>


More information about the macports-users mailing list