j-rs-computer:/Users/jr root# sudo su
j-rs-computer:/Users/jr root# setgroups mysql
su: setgroups: command not found
j-rs-computer:/Users/jr root# groupadd mysql
su: groupadd: command not found
j-rs-computer:/Users/jr root#
I also tried:
j-rs-computer:/applications root# /bin/bash
j-rs-computer:/applications root# groupadd mysql
bash: groupadd: command not found
Can you tell me how to add a group?
By the way, after you do sudo su to be the root user how do you switch
back to the regular user?
thanks,
manually by editing /etc/groups
> By the way, after you do sudo su to be the root user how do you switch
> back to the regular user?
exit
> thanks,
add/append a line
mysql:*:30:
> because my instructions say to add it at the shell?
>
> shell> groupadd mysql
> thanks,
I don't know where MacOS puts the groupadd command, or whether it
calls it something else. (On my Linux box, it's /usr/sbin/groupad,
but that probably doesn't help you much.)
There's probably a way to add a group through the GUI. Yes, your
instructions say to do it at the shell, but don't worry about that; it
shouldn't matter how the group is created.
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
I got it, that was a little scary. I forgot my root password for a
minute. Now I have to add a mysql user. My guess is
mysql:*:30:mysql
is that right?
thanks and regards,
janis
> I got it, that was a little scary. I forgot my root password for a
> minute. Now I have to add a mysql user. My guess is
> mysql:*:30:mysql
> is that right?
Hang yourself out in a mac discussion forum.
Add a New User
http://www.osxfaq.com/tips/unix-tricks/week91/wednesday.ws
good luck
I said to add
mysql:*:30:
didn't I?
That extry mysql at the end refers to a user amed mysql, does that exist?
It doesn't have one- this is a BSD-ism.
> calls it something else. (On my Linux box, it's /usr/sbin/groupad,
> but that probably doesn't help you much.)
You can add and remove groups through netinfo, use niload and nidump. The
behavior goes back to the NeXT days.
> There's probably a way to add a group through the GUI. Yes, your
> instructions say to do it at the shell, but don't worry about that; it
> shouldn't matter how the group is created.
If there's still a gui for browsing the netinfo db, you can do it there.