Frebsd install samba

FreeBSD Installation tips

Frebsd install samba

Postby stephen » Sat May 22, 2010 5:27 am

I found FreeBSD samba install instructions here:
http://www.us-webmasters.com/FreeBSD/Install/Samba/

cd /usr/ports/net/samba34
make install

Edit the smb.conf file
cd /usr/local/etc/
vi smb.conf


Change workgroup to match your windows workgroup
workgroup = MYGROUP

create a share that you can access
[fredsdir]
comment = A directory that fred can access
path = /usr/local/www/apache22/data
valid users = fred
public = no
writeable = yes
prinable = no

Make sure fred has write access to the path directory

check that the config is correct
/usr/local/bin/testparm | more

Add samba into the /etc/rc.conf file
vi /etc/rc.conf
# Start up the Samba file server program using /usr/local/etc/smb.conf
samba_enable="YES"

make sure the user fred has a freebsd login use adduser
make sure fred has a smaba password use smbpasswd -a fred
make sure that the user fred has freebsd write access permissions to the shared folders he will be accessing.

If you user and password is the same as the windows user and password the you will not
be prompted for username and password accessing the share.

Restart the server
shutdown -r now

to restart samba after changes to smb.conf file
/usr/local/etc/rc.d/samba restart
stephen
 
Posts: 507
Joined: Thu Feb 09, 2006 9:37 am
Location: Brisbane

Return to FreeBSD

Who is online

Users browsing this forum: No registered users and 4 guests

cron