Fermer2
onurLe 19/10/2009 à 06:40
Excite par l'idee d'avoir un vrai Unix sous la main, je me suis lance dans la compilation de mysql a la main. Bonne nouvelle, ca compile tres bien. Mais le probleme c'est que j'ai tout compile en tant que root et je n'arrive pas a gerer les users et groups pour changer les droits.

Ils disent ici qu'il faut suivre les instructions de la. Sauf qu'il n'y a pas groupadd ou useradd sous mac os x depuis un moment sorry En gros la doc officielle dit de faire une commande qu'on peut pas faire. En cherchant sur le web, j'ai vu qu'on pouvait utiliser dscl pour ajouter un user ou editer /etc/group pour ajouter un group.

J'ajoute donc l'user et le group mysql ainsi, mais les changements de owner me font n'imp: sh-3.2# ls -la total 0 drwxr-xr-x  10 root  wheel   340 Oct 18 20:34 . drwxr-xr-x   8 root  wheel   272 Oct 18 20:34 .. drwxr-xr-x  41 root  wheel  1394 Oct 18 20:34 bin drwxr-xr-x   4 root  wheel   136 Oct 18 20:34 docs drwxr-xr-x   3 root  wheel   102 Oct 18 20:34 include drwxr-xr-x   3 root  wheel   102 Oct 18 20:34 lib drwxr-xr-x   4 root  wheel   136 Oct 18 20:34 libexec drwxr-xr-x  15 root  wheel   510 Oct 18 20:34 mysql-test drwxr-xr-x   5 root  wheel   170 Oct 18 20:34 share drwxr-xr-x  29 root  wheel   986 Oct 18 20:34 sql-bench sh-3.2# chgrp -R mysql /usr/local/mysql/ sh-3.2# ls -la total 0 drwxr-xr-x  10 root  nobody   340 Oct 18 20:34 . drwxr-xr-x   8 root  wheel    272 Oct 18 20:34 .. drwxr-xr-x  41 root  nobody  1394 Oct 18 20:34 bin drwxr-xr-x   4 root  nobody   136 Oct 18 20:34 docs drwxr-xr-x   3 root  nobody   102 Oct 18 20:34 include drwxr-xr-x   3 root  nobody   102 Oct 18 20:34 lib drwxr-xr-x   4 root  nobody   136 Oct 18 20:34 libexec drwxr-xr-x  15 root  nobody   510 Oct 18 20:34 mysql-test drwxr-xr-x   5 root  nobody   170 Oct 18 20:34 share drwxr-xr-x  29 root  nobody   986 Oct 18 20:34 sql-bench sh-3.2# chgrp -R wheel /usr/local/mysql/ sh-3.2# ls -la total 0 drwxr-xr-x  10 root  wheel   340 Oct 18 20:34 . drwxr-xr-x   8 root  wheel   272 Oct 18 20:34 .. drwxr-xr-x  41 root  wheel  1394 Oct 18 20:34 bin drwxr-xr-x   4 root  wheel   136 Oct 18 20:34 docs drwxr-xr-x   3 root  wheel   102 Oct 18 20:34 include drwxr-xr-x   3 root  wheel   102 Oct 18 20:34 lib drwxr-xr-x   4 root  wheel   136 Oct 18 20:34 libexec drwxr-xr-x  15 root  wheel   510 Oct 18 20:34 mysql-test drwxr-xr-x   5 root  wheel   170 Oct 18 20:34 share drwxr-xr-x  29 root  wheel   986 Oct 18 20:34 sql-bench sh-3.2# chown -R mysql /usr/local/mysql/ sh-3.2# ls -la total 0 drwxr-xr-x  10 nobody  wheel   340 Oct 18 20:34 . drwxr-xr-x   8 root    wheel   272 Oct 18 20:34 .. drwxr-xr-x  41 nobody  wheel  1394 Oct 18 20:34 bin drwxr-xr-x   4 nobody  wheel   136 Oct 18 20:34 docs drwxr-xr-x   3 nobody  wheel   102 Oct 18 20:34 include drwxr-xr-x   3 nobody  wheel   102 Oct 18 20:34 lib drwxr-xr-x   4 nobody  wheel   136 Oct 18 20:34 libexec drwxr-xr-x  15 nobody  wheel   510 Oct 18 20:34 mysql-test drwxr-xr-x   5 nobody  wheel   170 Oct 18 20:34 share drwxr-xr-x  29 nobody  wheel   986 Oct 18 20:34 sql-bench sh-3.2# man chown sh-3.2# chown -R root /usr/local/mysql/ sh-3.2# ls -la total 0 drwxr-xr-x  10 root  wheel   340 Oct 18 20:34 . drwxr-xr-x   8 root  wheel   272 Oct 18 20:34 .. drwxr-xr-x  41 root  wheel  1394 Oct 18 20:34 bin drwxr-xr-x   4 root  wheel   136 Oct 18 20:34 docs drwxr-xr-x   3 root  wheel   102 Oct 18 20:34 include drwxr-xr-x   3 root  wheel   102 Oct 18 20:34 lib drwxr-xr-x   4 root  wheel   136 Oct 18 20:34 libexec drwxr-xr-x  15 root  wheel   510 Oct 18 20:34 mysql-test drwxr-xr-x   5 root  wheel   170 Oct 18 20:34 share drwxr-xr-x  29 root  wheel   986 Oct 18 20:34 sql-bench sh-3.2# 
ca me met "nobody". Comment je cree un user? Comment je cree un group? Je parle de user et group au sens ceux qu'on voit quand on fait ls -la.