Add user to samba

1. Add user to freebsd using “adduser” for detailĀ http://www.freebsd.org/doc/handbook/users-modifying.html.

to view group of a user use “id [username'"

2. add user to samba using "smbpasswd -a [username]“

Install Mysql on Freebsd

copy mysql tar bar into /usr/ports/distfiles
#cp mysql-5.1.53.tar.gz /usr/ports/distfiles

copy mysql ports to /usr/ports/databases
#cp mysql51-server.tar.gz /usr/ports/databases

change to /usr/ports/databases and remove mysql51-server
# cd /usr/ports/databases
# rm mysql51-server

unpack the ports
# tar zxvf mysql51-server.tar.gz

go to mysql51-server directory and edit makefile and add –with-innodb save
# cd mysql51-server
# ee Makefile

#make install -DBUILD_STATIC -DBUILD_OPTIMIZED

create dbdir

#mkdir /usr/dbdir
#chown mysql:mysql /usr/dbdir
#chmod 777 /usr/dbdir

edit /etc/rc.conf
mysql_enable=”YES”
mysql_dbdir=”/usr/dbdir”

Follow

Get every new post delivered to your Inbox.