DelphiFAQ Home Search:

How to add a group in BSD Unix

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

The mysql install instructions tell me to create a new group 'mysql' and a user 'mysql'. But the suggested (standard unix) command groupadd does not work on my BSD system?

Answer:

You need to run the following commands. Use tool pw to add groups and users, and notice the reverse order of arguments in the command to add a user.

pw groupadd mysql
pw useradd mysql -g mysql
cd /usr/local
ln -s /root/peter/mysql-5.0.45-freebsd6.0-i386 mysql
cd mysql
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
bin/mysqld_safe --user=mysql &


Comments:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: