groupadd on bash



I am installing mysql binaries on my mac. The first instruction says
to add a mysql group at the shell. It is the bash shell. There does
not appear to be a addgroup command. I found a setgroups command but
it didn't work.

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,
.



Relevant Pages

  • Re: groupadd on bash
    ... says to add a mysql group at the shell. ... It is the bash shell. ... There does not appear to be a addgroup command. ... That extry mysql at the end refers to a user amed mysql, ...
    (comp.unix.shell)
  • Re: groupadd on bash
    ... to add a mysql group at the shell. ...  It is the bash shell. ... not appear to be a addgroup command. ...
    (comp.unix.shell)
  • Re: groupadd on bash
    ... to add a mysql group at the shell. ... It is the bash shell. ... not appear to be a addgroup command. ...
    (comp.unix.shell)
  • Re: groupadd on bash
    ... to add a mysql group at the shell. ... It is the bash shell. ... not appear to be a addgroup command. ... root user but did I accidentally damage /etc/group? ...
    (comp.unix.shell)
  • Re: Starting background process in ssh session
    ... nohup $command ... bash shell do this: ... #exit the subshell ... > to have to kill the ssh process on my end to terminate the connection. ...
    (Debian-User)